2016-07-26 92 views
3

最近,流星已升級到v1.4,那太棒了!對我來說不幸的是,我無法升級它,並有這樣的錯誤日誌。更新到流星1.4時出錯

While loading package [email protected]: 
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! [email protected] install: `node-gyp rebuild` 
npm ERR! spawn ENOENT 
npm ERR! 
npm ERR! Failed at the [email protected] 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! [email protected] install: `node-gyp rebuild` 
npm ERR! spawn ENOENT 
npm ERR! 
npm ERR! Failed at the [email protected] 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 

我已經嘗試過卸載和安裝節點JS和故宮,我認爲它會成功,但同樣的錯誤仍然出現了。誰能幫我??謝謝

+0

它似乎是使用節點4.4 0.7。流星使用0.10。不知道這是否是問題。您是否手動更改.meteor文件中的節點版本? – vijayst

+0

不,我不手動改變,我改變全球使用nvm更改版本。那麼如何改變流星文件中的節點版本?我只是安裝它,它會自動使用0.10 – marc

+0

這是in.meteor/local/build/.node_version.txt。我不知道如何改變它。 – vijayst

回答