【问题标题】:Error while updating to Meteor 1.4更新到 Meteor 1.4 时出错
【发布时间】:2016-11-29 12:58:15
【问题描述】:

最近,Meteor 升级到了 v1.4,太好了!对我来说不幸的是,我无法升级它并且有这样的错误日志。

While loading package npm-bcrypt@0.8.7:
error: Command failed:
/root/.meteor/packages/meteor-tool/.1.4.0.1oo55z5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
rebuild --no-bin-links --update-binary
sh: 1: node-gyp: Permission denied

npm ERR! Linux 4.4.0-21-generic
npm ERR! argv
"/root/.meteor/packages/meteor-tool/.1.4.0.1oo55z5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/root/.meteor/packages/meteor-tool/.1.4.0.1oo55z5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
"rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.5
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! bcrypt@0.8.7 install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the bcrypt@0.8.7 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt 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 information on how to open an issue for this project with:
npm ERR!     npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bcrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!
/root/.meteor/packages/npm-bcrypt/.0.8.7.1i1986o++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1fwxhnx/npm-debug.log
sh: 1: node-gyp: Permission denied

npm ERR! Linux 4.4.0-21-generic
npm ERR! argv
"/root/.meteor/packages/meteor-tool/.1.4.0.1oo55z5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/root/.meteor/packages/meteor-tool/.1.4.0.1oo55z5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm"
"rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.5
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! bcrypt@0.8.7 install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the bcrypt@0.8.7 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt 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 information on how to open an issue for this project with:
npm ERR!     npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bcrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!
/root/.meteor/packages/npm-bcrypt/.0.8.7.1i1986o++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1fwxhnx/npm-debug.log

我已经尝试卸载和安装 node js 和 npm,我认为它会成功但仍然出现相同的错误。谁能帮我??谢谢

【问题讨论】:

  • 它似乎正在使用节点 4.4.7。流星使用 0.10。不确定这是否是问题所在。您是否手动更改了 .meteor 文件中的节点版本?
  • 不,我不手动更改,我使用 nvm 全局更改以更改版本。那么如何更改流星文件中的节点版本?我只是安装它,它使用版本 0.10 自动安装
  • 它在.meteor/local/build/.node_version.txt。不知道怎么改。
  • 看起来 Meteor 1.4 默认使用 Node 4.4.7。
  • 你需要添加这个包meteor add npm-bcrypt如果问题仍然存在更新nodejs和npm以及你的包

标签: node.js meteor


【解决方案1】:

针对您的问题的几种不同解决方案,具体取决于平台: https://github.com/meteor/meteor/issues/7469#issuecomment-235563857

(流星问题通常通过 github 问题比 Stack Overflow 问题更容易解决)

【讨论】:

    猜你喜欢
    • 2021-11-12
    • 1970-01-01
    • 1970-01-01
    • 2018-06-19
    • 2013-08-20
    • 2012-07-22
    • 1970-01-01
    • 2014-01-27
    • 2014-11-01
    相关资源
    最近更新 更多