全局安装"/>
没有sudo的NPM模块将无法全局安装
我刚刚重新安装了Ubuntu 12.04 LTS,在执行这些步骤之前,我没有做任何其他事情:
[使用以下脚本通过程序包管理器安装的节点
sudo apt-get update sudo apt-get install python-software-properties python g++ make sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs
试图在全球安装yeoman,express,n,yeoman的生成器,并且它们都返回了相同的错误
npm ERR!错误:EACCES,符号链接'../ lib / node_modules / n / bin / n'
npm ERR! {[错误:EACCES,符号链接'../lib/node_modules/n/bin/n']错误号:3,代码:'EACCES',路径:'../ lib / node_modules / n / bin / n'}] >
npm ERR!
npm ERR!请尝试以root /管理员身份再次运行此命令。
npm ERR!系统Linux 3.8.0-29-通用
npm ERR!命令“ / usr / bin / node”“ / usr / bin / npm”“安装”“ -g”“ -d”“ n”
npm ERR! cwd / home / heberlz
npm ERR!节点-v v0.10.20
npm ERR! npm -v 1.3.11
npm ERR!路径../ lib / node_modules / n / bin / n
npm ERR!代码EACCES
npm ERR! errno 3
npm ERR!堆栈错误:EACCES,符号链接'../ lib / node_modules / n / bin / n'
npm ERR!
npm ERR!其他日志记录详细信息可以在以下位置找到:
npm ERR! /home/heberlz/npm-debug.log
npm ERR!错误代码0
递归回收以下文件夹的所有权
〜/ .npm,/ usr / lib / node,/ usr / lib / node_modules,以及以下符号链接的/ usr / bin / node,/ usr / bin / nodejs 绝对没有成功
我需要在没有sudo的情况下安装yeoman及其生成器,以免稍后出现麻烦:(
我刚刚重新安装了Ubuntu 12.04 LTS,在执行其他步骤之前,我先执行了以下步骤:使用以下脚本通过软件包管理器安装Node sudo apt-get update sudo apt-get install python -...
回答如下:更多推荐
没有sudo的NPM模块将无法全局安装
发布评论