【问题标题】:nodewebkit failing install in node 0.8nodewebkit 在节点 0.8 中安装失败
【发布时间】:2014-06-18 01:51:10
【问题描述】:

我正在尝试在节点版本 0.8 中安装 nodewebkit。

> nvm use 0.8
> npm update
> npm install -g nodewebkit

npm http GET https://registry.npmjs.org/nodewebkit
npm http 304 https://registry.npmjs.org/nodewebkit
npm WARN engine nodewebkit@0.8.6: wanted: {"node":">= 0.10.0"} (current: {"node":"v0.8.26","npm":"1.2.30"})
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/download
npm http GET https://registry.npmjs.org/multimeter
npm http GET https://registry.npmjs.org/yargs
npm http 304 https://registry.npmjs.org/rimraf
npm ERR! Error: No compatible version found: rimraf@'^2.2.2'
npm ERR! Valid install targets:
npm ERR! ["1.0.0","1.0.1","1.0.2","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","2.0.0","2.0.1","2.0.2","2.0.3","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6"]
npm ERR!    at installTargetsError (/home/charleswall/.nvm/v0.8.26/lib/node_modules/npm/lib/cache.js:719:10)
npm ERR!    at /home/charleswall/.nvm/v0.8.26/lib/node_modules/npm/lib/cache.js:641:10
npm ERR!    at saved (/home/charleswall/.nvm/v0.8.26/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR!    at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR!    <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!    <npm-@googlegroups.com>

npm ERR! System Linux 3.8.0-29-generic
npm ERR! command "/home/charleswall/.nvm/v0.8.26/bin/node" "/home/charleswall/.nvm/v0.8.26/bin/npm" "install" "nodewebkit"
npm ERR! cwd /home/charleswall/projects/liveos-vnc-proxy
npm ERR! node -v v0.8.26
npm ERR! npm -v 1.2.30
npm http 304 https://registry.npmjs.org/download
npm http 304 https://registry.npmjs.org/yargs
npm http 304 https://registry.npmjs.org/multimeter
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!    /home/charleswall/projects/liveos-vnc-proxy/npm-debug.log
npm ERR! not ok code 0

奇怪的是,这适用于节点 0.10。我在 ubuntu 12.04 上。我尝试单独安装 rimraf(无论是什么)无济于事。有什么想法吗?

【问题讨论】:

    标签: node.js npm node-webkit


    【解决方案1】:

    rimraf是node的深度删除模块(如rm -rf

    npm 表示它无法安装 rimraf 的 2.2.2 版本,因为它可能正在安装更新的版本(从您的日志中可以看到 2.2.6)。 要强制 npm 安装正确的版本,请运行以下命令:

    npm install rimraf@2.2.2 -g
    

    【讨论】:

    • 不幸的是,有一整组模块无法安装 rimraf,而这恰好是我安装时失败的模块。我已经切换到节点 0.10。不过感谢您的帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-06-18
    • 2020-02-06
    • 2020-10-29
    • 2018-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多