Error while updating to Meteor 1.4

Recently, Meteor has been upgraded to v1.4, well that’s great! Unfortunately for me, I cannot upgrade it and have an error log like this.

While loading package npm-bcrypt@0.8.7:
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! bcrypt@0.8.7 install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the bcrypt@0.8.7 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! bcrypt@0.8.7 install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the bcrypt@0.8.7 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

I already tried to uninstall and install node js and npm, I thought it will success but the same error still showed up. Can anyone help me?? thank you

1 Like

Check the guide. It might help. https://guide.meteor.com/1.4-migration.html

I’ ve got the same problem, I couldn’t upgrade Meteor to 1.4 version with the accounts-password package installed in my app. Then i removed the accounts-password package and update Meteor to 1.4 version. But when i tried to reinstall de accounts-password package this error appears:

/home/isibz/.meteor/packages/meteor-tool/.1.4.0.xzlutb++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
rebuild --no-bin-links --update-binary
gyp ERR! clean error
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build’
gyp ERR! stack at Error (native)
gyp ERR! System Linux 3.19.0-39-generic
gyp ERR! command
"/home/isibz/.meteor/packages/meteor-tool/.1.4.0.xzlutb++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/isibz/.meteor/packages/meteor-tool/.1.4.0.xzlutb++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
gyp ERR! cwd
/home/isibz/.meteor/packages/npm-bcrypt/.0.8.7.kdxjxd++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-14ru2o6/node_modules/bcrypt
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

npm ERR! Linux 3.19.0-39-generic
npm ERR! argv
"/home/isibz/.meteor/packages/meteor-tool/.1.4.0.xzlutb++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/isibz/.meteor/packages/meteor-tool/.1.4.0.xzlutb++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! code ELIFECYCLE
npm ERR! bcrypt@0.8.7 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.7 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!
/home/isibz/.meteor/packages/npm-bcrypt/.0.8.7.kdxjxd++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-14ru2o6/npm-debug.log
gyp ERR! clean error
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build’
gyp ERR! stack at Error (native)
gyp ERR! System Linux 3.19.0-39-generic
gyp ERR! command
"/home/isibz/.meteor/packages/meteor-tool/.1.4.0.xzlutb++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/isibz/.meteor/packages/meteor-tool/.1.4.0.xzlutb++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
gyp ERR! cwd
/home/isibz/.meteor/packages/npm-bcrypt/.0.8.7.kdxjxd++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-14ru2o6/node_modules/bcrypt
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

npm ERR! Linux 3.19.0-39-generic
npm ERR! argv
"/home/isibz/.meteor/packages/meteor-tool/.1.4.0.xzlutb++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/isibz/.meteor/packages/meteor-tool/.1.4.0.xzlutb++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! code ELIFECYCLE
npm ERR! bcrypt@0.8.7 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.7 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!
/home/isibz/.meteor/packages/npm-bcrypt/.0.8.7.kdxjxd++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-14ru2o6/npm-debug.log

1 Like

Same problem here (and i’ve followed the guide).

I use:

  • win 10
  • node v4.4.7
  • npm v3.10.5

I already tried to uninstall and install node js and npm.
Do you have any solutions?
Thanks

Well, maybe someone who already succeeded could share the experience

1 Like

Same error when i test for upgrade meteor 1.3.5.1 to 1.4.

Node version : 4.4.7
npm version : 3.10.5

Try to update your npm version in your meteor project :

Try that command and tell me if it works please :

meteor npm install npm -g

Hi Jaetoh,

It doesn’t work for me, i still get the same error…

This error could mean it’s a file system related permission issue… Perhaps try running:

sudo meteor update

I know you shouldn’t have to use sudo really, but it’s worth testing to see if it gets you over the problem in this instance.

I tried with sudo and without sudo. I create a new app and tried to add the accounts-password package and give the same error. This error only happens with the package dependency npm-bcrypt. The rest of the packages updates correctly

Are you 100% certain that you have all elements of the build toolchain installed as mentioned in the 1.4 migration guide?

Ok I solved the problem changin the permissions of the .meteor folder inside my application.
sudo chown -R username:group .meteor

1 Like

I tried on windows but it still doesn’t work

Same error in Windows. I installed msbuild

Ok. I just got mine working on Windows 10 x64. I installed the msbuild tools like the migration guide suggested and received the same errors as above. I install Visual Studio 2015 Community and made sure to install the c++ build tools from the installer and the ‘meteor upgrade’ worked perfectly afterwords. I will see if I can get it to work with just the msbuild tools, but in the meantime install VC 2015 with the c++ build tools and I think it will work for you.

3 Likes

Installing Visual Studio 2015 solved my update issues, too.

here: “meteor npm rebuild” solved my update issues.

1 Like

@java99 - Do you already have some version of Visual Studio installed? I tried “meteor npm rebuild” and got the same errors before I install visual studio. Just curious if that worked for you without VC.

yes - without visual studio

Are u using ubuntu???