我从昨天起就开始这样做了。我正在学习本教程。即使是Ubuntu安装,我也可以在Cent OS上找到它的安装过程。当发出命令npm install
时,我一直收到此错误。从昨天开始,我就一直在进行此部署过程。这是教程 - [https://vpsineu.com/blog/how-to-install-nginx-mongodb-nodejs-and-host-meteorjs-applications-on-an-ubuntu-vps/][1]。我收到了这个错误:
[meteor@christdoes server]$ npm install
> fibers@1.0.15 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
> meteor-dev-bundle@0.0.0 install /opt/meteor/webapps/schoolapps/bundle/programs/server
> node npm-rebuild.js
> bson@0.2.21 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'
> kerberos@0.0.9 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'
gridfs-stream@0.5.3 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/gridfs-stream
mongodb@1.4.35 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb
bson@0.2.21 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson
nan@1.7.0 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/node_modules/nan
kerberos@0.0.9 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos
nan@1.6.2 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/kerberos/node_modules/nan
readable-stream@1.0.33 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream
core-util-is@1.0.1 /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
isarray@0.0.1 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray
string_decoder@0.10.31 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder
inherits@2.0.1 /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits
> bcrypt@1.0.2 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 meteor-dev-bundle@0.0.0 No description
npm WARN meteor-dev-bundle@0.0.0 No repository field.
npm WARN meteor-dev-bundle@0.0.0 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! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the meteor-dev-bundle@0.0.0 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
[meteor@christdoes server]$ ^C
[meteor@christdoes server]$
答案 0 :(得分:3)
您绝对应该使用MeteorUp在服务器上部署您的meteor应用程序:https://github.com/zodern/meteor-up
要使它在CentOs上运行,你只需要在服务器上手动安装Docker,然后mup完成剩下的工作。