2017-01-27 32 views
1

當我試圖在本地部署我的nodejs應用程序(區塊鏈)時,我遇到了下面的錯誤。部署本地區塊鏈技術時出錯

npm ERR! Linux 4.4.0-31-generic 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--quiet" 
npm ERR! node v4.7.2 
npm ERR! npm v4.1.1 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] install: `node-gyp configure build` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp configure build'. 
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 hashtable package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node-gyp configure build 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs hashtable 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls hashtable 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /usr/src/app/npm-debug.log 
ERROR: Service 'asset-diamond-demo' failed to build: The command '/bin/sh -c npm install --quiet' returned a non-zero code: 1 

但是,當我從家裏的個人筆記本電腦部署它,它已經部署。 似乎不是在辦公室。

任何人都可以提出任何解決方案嗎?

回答

0

安裝nvm並使用它來確保您有一個乾淨的,最新的工作節點設置。嘗試使用nvm而不是4來安裝Node 7.something。