node.js - 从 npm : no such option --no-parallel 安装 ctags

标签 node.js npm ctags

我最近安装了 node 和 npm 来尝试一下,但是在安装模块的过程中,它卡在了它所依赖的 ctags 包上。尝试只安装 ctags 导致了一个奇怪的错误,我找不到解决方案。

henje@mymachine:~/test/node-ctags$ npm install
npm http GET https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/grunt-contrib-coffee
npm http GET https://registry.npmjs.org/event-stream
npm http GET https://registry.npmjs.org/grunt-shell
npm http GET https://registry.npmjs.org/node-gyp
[...]

> ctags@0.11.0 install /home/henje/test/node-ctags
> node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 2.6.36.4-vs2.3.0.36.39-nc
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/henje/test/node-ctags
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok

npm ERR! ctags@0.11.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ctags@0.11.0 install script.
npm ERR! This is most likely a problem with the ctags package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls ctags
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.36.4-vs2.3.0.36.39-nc
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/henje/test/node-ctags
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.6
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/henje/test/node-ctags/npm-debug.log
npm ERR! not ok code 0

我不确定这是一个普遍问题还是只是一个问题。我尝试了 npm install ctags 以及从 github 克隆。我还检查了我是否有最近的 gcc 等 gyp,但不知道还有什么。我很感激任何答案。

最佳答案

我在尝试安装 pm2 模块时也遇到了这个问题。 作为一种解决方法,删除 gyp 为我解决了这个问题:

sudo apt-get 删除 gyp

这是 pm2 存储库中列出的问题本身:https://github.com/Unitech/pm2/issues/434

关于node.js - 从 npm : no such option --no-parallel 安装 ctags,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22767121/

相关文章:

javascript - 无法确定任何并发

node.js - 如何自动链接本地 npm 包?

go - ctags 识别 go 中的 const 变量

node.js - 如何为快速 session req.session.destroy() 编写简单的 Jest 模拟

javascript - 关联查询中如何指定外键

node.js - 每次代码更改时 Angular 2 ng-build?

windows-10 - Windows上的通用标签

ios - npm 发布模块包括 iOS 框架。当 npm 安装该模块时,iOS 框架已损坏

node.js - 将 npm 包与相等的 devDependencies 和 peerDependencies 链接会破坏使用 webpack 进行开发的应用程序

以 "path agnostic"方式从vim编译C文件