Reputation: 2296
I have been on this since yesterday. i am following this tutorial. Even though, it is for Ubuntu installation I was able to find away around it the installation process on Cent OS. when issued the command npm install
I kept getting this error. This has been since yesterday I have been on this deployment process. This is the tutorial - [https://vpsineu.com/blog/how-to-install-nginx-mongodb-nodejs-and-host-meteorjs-applications-on-an-ubuntu-vps/][1]. I am getting this error:
[meteor@christdoes 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
[meteor@christdoes server]$ ^C
[meteor@christdoes server]$
Upvotes: 0
Views: 627
Reputation: 498
You should definitely use MeteorUp to deploy your meteor application on a server: https://github.com/zodern/meteor-up
To make it work on CentOs you just need to install Docker manually on the server and mup do the rest.
Upvotes: 3