Node.js 安装时出错';n';
正在尝试安装“n”,但出现以下错误:Node.js 安装时出错';n';,node.js,npm,Node.js,Npm,正在尝试安装“n”,但出现以下错误: npm isntall -g n /usr/lib └── n@2.1.0 npm ERR! Linux 3.16.0-57-generic npm ERR! argv "node" "/usr/local/bin/npm" "isntall" "-g" "n" npm ERR! node v0.10.25 npm ERR! npm v3.5.3 npm ERR! path /usr/lib/node_modules/.staging npm ERR
npm isntall -g n
/usr/lib
└── n@2.1.0
npm ERR! Linux 3.16.0-57-generic
npm ERR! argv "node" "/usr/local/bin/npm" "isntall" "-g" "n"
npm ERR! node v0.10.25
npm ERR! npm v3.5.3
npm ERR! path /usr/lib/node_modules/.staging
npm ERR! code ELOOP
npm ERR! errno 51
npm ERR! ELOOP, unlink '/usr/lib/node_modules/.staging'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/yeoman-start/npm-debug.log
npm isntall-g n
/usr/lib
└── n@2.1.0
npm错误!Linux 3.16.0-57-generic
npm错误!argv“node”“/usr/local/bin/npm”“isntall”“-g”“n”
npm错误!节点v0.10.25
npm错误!npm v3.5.3
npm错误!路径/usr/lib/node_modules/.staging
npm错误!密码私奔
npm错误!厄尔诺51
npm错误!ELOOP,取消链接“/usr/lib/node_modules/.staging”
npm错误!
npm错误!如果需要帮助,您可以在以下位置报告此错误:
npm错误!
npm错误!请在任何支持请求中包括以下文件:
npm错误/var/www/yeoman start/npm-debug.log
问题是什么?我该如何处理?首先,让我们从以下内容开始:
ELOOP: {
errno: 51,
message: 'too many symbolic links encountered'
}
第二,,
我不确定您是否必须通过npm
安装n
,但如果您不这样做,还有三种选择:
进行安装
:
为此,只需克隆存储库(git-clone)https://github.com/tj/n.git
),将cd放入目录(cdn
),然后运行命令n-install
:
只需运行curl-Lhttp://git.io/n-install |bash
命令,您需要什么就做什么brew
:
这就是我的选择。首先安装brew
(或者说),然后运行brew安装n
。就这样首先,让我们从以下内容开始:
ELOOP: {
errno: 51,
message: 'too many symbolic links encountered'
}
第二,,
我不确定您是否必须通过npm
安装n
,但如果您不这样做,还有三种选择:
进行安装
:
为此,只需克隆存储库(git-clone)https://github.com/tj/n.git
),将cd放入目录(cdn
),然后运行命令n-install
:
只需运行curl-Lhttp://git.io/n-install |bash
命令,您需要什么就做什么brew
:
这就是我的选择。首先安装brew
(或者说),然后运行brew安装n
。就这样您在
isntall
中有一个输入错误!请尝试npm安装-g n
@Beat npm处理此拼写错误。问题是OP正在进入一个依赖循环code ELOOP
。您在isntall
中有一个输入错误!请尝试npm安装-g n
@Beat npm处理此拼写错误。问题是OP正在进入一个依赖循环code-ELOOP
。