ubuntu 16.04 安装nodejs 以及问题整理
来源:互联网 发布:金庸 误解 知乎 编辑:程序博客网 时间:2024/06/05 21:15
添加官方源
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
安装nodejs
sudo apt-get install -y nodejs
npm安装puppeteer失败
运行命令 npm install -g puppeteer 出现如下错误
npm install -g puppeteer returns the following error: Download failed: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/puppeteer/.local-chromium'
解决方法:
- Make a directory for global installations:
mkdir ~/.npm-global
2.Configure npm to use the new directory path:
npm config set prefix '~/.npm-global'
3.Open or create a ~/.profile file and add this line:
export PATH=~/.npm-global/bin:$PATH
4.Back on the command line, update your system variables:
source ~/.profile
阅读全文
0 0
- ubuntu 16.04 安装nodejs 以及问题整理
- Ubuntu 软件以及安装问题整理
- Ubuntu 16.04 安装nodejs
- ubuntu server12.04上面安装oracle11g以及整理问题
- nodejs安装教程整理
- Ubuntu下Nodejs和npm以及Express的安装
- NodeJs 简介以及安装
- nodejs 安装以及配置
- 在Ubuntu 16.04下安装nodejs
- ubuntu 安装nodejs
- ubuntu nodejs 安装
- Ubuntu安装nodeJS
- ubuntu安装nodeJS
- nodejs Ubuntu下安装
- ubuntu 安装 nodejs
- ubuntu安装最新nodejs
- Ubuntu安装nodeJS
- Ubuntu安装nodeJS
- 爬虫分析之WebMagic框架篇:牛刀小试
- RedHat6.6 更换CentOS6 yum和yum源
- Codeforces
- Oracle day02 火推
- 待深入学习
- ubuntu 16.04 安装nodejs 以及问题整理
- ImageLoader 第一步全局变量 封装一个类 在清单列表中注册才可以首次登陆
- vim里的一些实用工具
- 刘建平Pinard
- QT之虚拟键盘
- ######Nginx配置文件nginx.conf中文详解##### #定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数。 worke
- Oracle day03 火推
- nat原理
- Baidu Map BuslineSearch