2017-09-07 25 views
0

我從昨天開始就一直關注這個問題。我正在學習這個教程。儘管如此,對於Ubuntu安裝,我能夠在Cent OS上找到它的安裝過程。當發出命令npm install我不斷收到此錯誤。自從昨天以來,我一直在進行這個部署過程。這是教程 - [https://vpsineu.com/blog/how-to-install-nginx-mongodb-nodejs-and-host-meteorjs-applications-on-an-ubuntu-vps/][1]。我收到此錯誤:在Centos上部署Meteor js應用程序7

[[email protected] server]$ npm install 

> [email protected] install /opt/meteor/webapps/schoolapps/bundle/programs/server/node_modules/fibers 
> node build.js || nodejs build.js 

`linux-x64-48` exists; testing 
Binary is fine; exiting 

> [email protected] install /opt/meteor/webapps/schoolapps/bundle/programs/server 
> node npm-rebuild.js 


> [email protected] install /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson 
> (node-gyp rebuild 2> builderror.log) || (exit 0) 

make: Entering directory `/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/build' 
    CXX(target) Release/obj.target/bson/ext/bson.o 
make: Leaving directory `/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/build' 

> [email protected] install /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos 
> (node-gyp rebuild 2> builderror.log) || (exit 0) 

make: Entering directory `/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos/build' 
    CXX(target) Release/obj.target/kerberos/lib/kerberos.o 
make: Leaving directory `/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos/build' 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/gridfs-stream 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/node_modules/nan 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos/node_modules/nan 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/core-util-is 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder 
[email protected] /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits 

> [email protected] install /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/bcrypt 
> node-pre-gyp install --fallback-to-build 

[bcrypt] Success: "/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote 
npm ERR! Linux 2.6.32-042stab123.3 
npm ERR! argv "/opt/meteor/.nvm/versions/node/v6.11.1/bin/node" "/opt/meteor/.nvm/versions/node/v6.11.1/bin/npm" "rebuild" "--update-binary" 
npm ERR! node v6.11.1 
npm ERR! npm v3.10.10 
npm ERR! path /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/sshpk/bin\sshpk-conv 
npm ERR! code ENOENT 
npm ERR! errno -2 
npm ERR! syscall chmod 

npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/sshpk/bin\sshpk-conv' 
npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/sshpk/bin\sshpk-conv' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 

npm ERR! Please include the following file with any support request: 
npm ERR!  /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/npm-debug.log 

npm WARN [email protected] No description 
npm WARN [email protected] No repository field. 
npm WARN [email protected] No license field. 
npm ERR! Linux 2.6.32-042stab123.3 
npm ERR! argv "/opt/meteor/.nvm/versions/node/v6.11.1/bin/node" "/opt/meteor/.nvm/versions/node/v6.11.1/bin/npm" "install" 
npm ERR! node v6.11.1 
npm ERR! npm v3.10.10 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] install: `node npm-rebuild.js` 
npm ERR! Exit status 254 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node npm-rebuild.js'. 
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 meteor-dev-bundle package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node npm-rebuild.js 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs meteor-dev-bundle 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls meteor-dev-bundle 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /opt/meteor/webapps/schoolapps/bundle/programs/server/npm-debug.log 
[[email protected] server]$ ^C 
[[email protected] server]$ 
+2

'node v6.11.1'不是流星需要的版本。通過'meteor --version'檢查你的開發項目,並在你的操作系統上安裝這個版本。如果'npm install' 仍然會引發錯誤,請擴展您的帖子。 – Jankapunkt

回答

3

你絕對應該使用MeteorUp部署在服務器上您的流星應用:https://github.com/zodern/meteor-up

爲了使它在CentOS工作,你只需要手動將服務器和MUP上安裝多克休息吧。

+0

我會給它一個鏡頭。謝謝。我在使用docker方面沒有經驗。任何文檔到這種效果? – kehinde

+0

只需按照自述文件進行操作即可,無需瞭解Docker即可使您的應用程序正常工作。部署與「部署」一樣簡單。 – fnkrm

+0

太棒了!我現在在文檔上。謝謝一堆。 – kehinde