Error while updating to Meteor 1.4

I’m fighting through this on Windows 7 now too. I’m upgrading from Meteor 1.3.5.1 to Meteor 1.4.

I tried to install MS Build Tools per migration guide:

https://guide.meteor.com/1.4-migration.html

and received the same error as the OP:

c:\git\ten\website\incentive-sherpa>meteor update
=> Errors while initializing project:

While loading package npm-bcrypt@0.8.7:
error: Command failed: C:\Users\David\AppData\Local\.meteor\packages\meteor-tool\1.4.0\mt-os.windows.x86_32\dev_bundle\bin\npm.cmd rebuild --no-bin-links --update-binary
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\David\AppData\Local\.meteor\packages\meteor-tool\1.4.0\mt-os.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Users\\David\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe" "C:\\Users\\David\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\David\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.temp-7y6xod\node_modules\bcrypt
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Users\\David\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe" "C:\\Users\\David\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js" "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!     C:\Users\David\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.temp-7y6xod\npm-debug.log
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\David\AppData\Local\.meteor\packages\meteor-tool\1.4.0\mt-os.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Users\\David\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe" "C:\\Users\\David\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\David\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.temp-7y6xod\node_modules\bcrypt
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Users\\David\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe" "C:\\Users\\David\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js" "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!     C:\Users\David\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.temp-7y6xod\npm-debug.log



c:\git\ten\website\incentive-sherpa>

I also tried meteor npm rebuild but no luck, same error.

I’m now installing Visual Studio Community 2015 with the C++ Build Tools as @mysterymac has suggested, I’ll post my findings here.

[About one hour later]:

It worked for me :grinning: after installing Visual Studio Community 2015, I was able to build successfully. Now to see if the application works on Meteor 1.4! Cheers to all.

1 Like

For me, the simplest way is to open a cmd window with administrator permission, and run npm install --global --production windows-build-tools, then, update normally.

you can refer to https://github.com/nodejs/node-gyp

1 Like

well I did that in linux, and still have the same error. For me it looks like that the package fourseven:scss that cannot be updated.

=> Errors while initializing project:

While loading package npm-bcrypt@0.8.7:
error: Command failed:
/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
rebuild --no-bin-links --update-binary
make: g++: Command not found
make: *** [Release/obj.target/bcrypt_lib/src/blowfish.o] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit
(/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit
(internal/child_process.js:200:12)
gyp ERR! System Linux 4.1.12-37.5.1.el6uek.x86_64
gyp ERR! command
"/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++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.df8o93++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
/root/.meteor/packages/npm-bcrypt/.0.8.7.cv8fgp++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-zzmmw3/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 4.1.12-37.5.1.el6uek.x86_64
npm ERR! argv
"/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++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.df8o93++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!
/root/.meteor/packages/npm-bcrypt/.0.8.7.cv8fgp++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-zzmmw3/npm-debug.log
make: g++: Command not found
make: *** [Release/obj.target/bcrypt_lib/src/blowfish.o] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit
(/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit
(internal/child_process.js:200:12)
gyp ERR! System Linux 4.1.12-37.5.1.el6uek.x86_64
gyp ERR! command
"/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++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.df8o93++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
/root/.meteor/packages/npm-bcrypt/.0.8.7.cv8fgp++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-zzmmw3/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 4.1.12-37.5.1.el6uek.x86_64
npm ERR! argv
"/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++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.df8o93++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!
/root/.meteor/packages/npm-bcrypt/.0.8.7.cv8fgp++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-zzmmw3/npm-debug.log


While loading package fourseven:scss@3.3.3_3:
error: Command failed:
/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
rebuild --no-bin-links --update-binary
module.js:327
throw err;
^

Error: Cannot find module '../'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous>
(/root/.meteor/packages/fourseven_scss/.3.3.3_3.me2k0h++os.linux.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.linux.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-m7n5t1/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync/node_modules/try-thread-sleep/node_modules/thread-sleep/node_modules/.bin/node-pre-gyp:15:20)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)

npm ERR! Linux 4.1.12-37.5.1.el6uek.x86_64
npm ERR! argv
"/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++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.df8o93++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! thread-sleep@1.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the thread-sleep@1.0.4 install script 'node-pre-gyp install
--fallback-to-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 thread-sleep
package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs thread-sleep
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls thread-sleep
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/fourseven_scss/.3.3.3_3.me2k0h++os.linux.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.linux.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-m7n5t1/npm-debug.log
module.js:327
throw err;
^

Error: Cannot find module '../'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous>
(/root/.meteor/packages/fourseven_scss/.3.3.3_3.me2k0h++os.linux.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.linux.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-m7n5t1/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync/node_modules/try-thread-sleep/node_modules/thread-sleep/node_modules/.bin/node-pre-gyp:15:20)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)

npm ERR! Linux 4.1.12-37.5.1.el6uek.x86_64
npm ERR! argv
"/root/.meteor/packages/meteor-tool/.1.4.0.df8o93++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.df8o93++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! thread-sleep@1.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the thread-sleep@1.0.4 install script 'node-pre-gyp install
--fallback-to-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 thread-sleep
package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs thread-sleep
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls thread-sleep
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/fourseven_scss/.3.3.3_3.me2k0h++os.linux.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.linux.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-m7n5t1/npm-debug.log

Hi all,

Here are some tips that may help you out:

Added observed gotchas by brucejo75 · Pull Request #526 · meteor/guide · GitHub -or- in MD form: Helpful-docs/Upgrade to v1.4.md at master · brucejo75/Helpful-docs · GitHub

I’m fighting with this problem too since yesterday.
I’ve tried everything:

  • I’ve installed more than 20gb of Visual studio 2015 and 2013
  • I’ve reinstalled npm and node (even all the other packages i’ve on this pc, like python)
  • I used npm install --global --production windows-build-tools
  • i’ve manually installed the Microsoft Build Tools 2015 and 2013
  • I tried meteor npm rebuild

Now, after all these steps, if try to run the update i get:

=> Errors while initializing project:

While loading package npm-bcrypt@0.8.7:
error: Command failed:
C:\Users\miller\AppData\Local\.meteor\packages\meteor-tool\1.4.0\mt-os.windows.x86_32\dev_bundle\bin\npm.cmd
rebuild --no-bin-links --update-binary
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit
(C:\Users\miller\AppData\Local\.meteor\packages\meteor-tool\1.4.0\mt-os.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command
"C:\\Users\\miller\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\miller\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd
C:\Users\miller\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.temp-hrlocf\node_modules\bcrypt
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

npm ERR! Windows_NT 10.0.10586
npm ERR! argv
"C:\\Users\\miller\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\miller\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"
"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 isnt available, you can get their info via:
npm ERR!     npm owner ls bcrypt
npm ERR! There is likely additional logging output above.....

And then, i try to run “node-gyp rebuild” i get:

gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@4.4.7 | win32 | x64
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Users\\miller\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\miller\\meteor\\ultima\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\miller\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\miller\\.node-gyp\\4.4.7\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\miller\\.node-gyp\\4.4.7',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\miller\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\miller\\meteor\\ultima',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\miller\\meteor\\ultima\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\Users\miller\meteor\ultima) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\miller\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\dev\\nodejs\\node.exe" "C:\\Users\\miller\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\miller\meteor\ultima
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

After this i’ve created manually a binding.gyp file without success.

I really don’t know what to do, i hope someone can fix this problem.
I need to publish this project in September…probably i’m in the worst situation you can think of :slight_smile:

Thank you for the help!

Thank to @zhaoyao91, it worked for me on Windows 7 ! I will try tonight on Windows 10.

npm install --global --production windows-build-tools

I tried to follow @brucejo tips,
firstly I update the package fourseven:scss first from 3.4.3 to 3.8.0_1,
secondly I update the meteor version. again the error npm-bcrypt show up.

Then I tried to remove package accounts-password because I think bcrypt means encryption or something that related with password encryption haha.
After that I tried to meteor update, and it worked, my application has a version 1.4.

Unfortunately, when I try to add again the accounts-password, again it show the error npm-bcrypt. I tried to change ownership of .meteor folder in my [Myapp]/local just like @isibz did, but it not worked.

What did I missing??

anyway I’m using ORACLE Linux 6

I use Ubuntu 14.04. Check this:

  1. basic compiler toolchain: Pyrthon 2.7, GNU Make , C compiler for example GCC
  2. Change ownership of the .meteor folder in the application
    3.Change ownership of the .meteor folder in the personal folder

It worked for me

For the ones with the error including:

gyp ERR! stack Error: EACCES: permission denied, rmdir ‘build’

This seems to be permission related as mentioned already by Longmate.
I noticed it on a Linux system where Meteor was installed as root (sudoed).

However sudo meteor update does trigger the error still. I think the permission rights are not properly propagated by the command.

Only way I could fix it is by changing the owner of the .meteor install directory from root to another user.

sudo chown -R <user>:<group> /home/<user>/.meteor

After this the update to 1.4 would work.

2 Likes

Thanks, it work for me … (Ubuntu)

Just installing node-gyp fixed the problem for my Windows 10 ios.

Execute
npm install -g node-gyp
on the command line.

I tried your method by changing the ownership but the same error show up again. I also change the permission into 777, but the error log still the same. Is it different between ubuntu and oracle linux environment??

RGGGGH! Same issue here after updating to 1.4! Tried everything suggested! It’s not an access issue for me.

FIXED! (for me at least):

Run ‘meteor add npm-bcrypt’

and hopefully you’re problems will be resolved.

3 Likes

Yes! I finally fixed the problem too!
If you have win10 try these steps (in order):

  1. (Re)install Visual studio 2015

  2. Execute: npm install --global --production windows-build-tools
    (as suggested by @leg3ndz)

  3. Then execute: npm install -g node-gyp
    (as suggested by @haverweb )

  4. Run the Meteor update

Hope this can help someone

This worked for me :slight_smile:

I think you are looking for the instructions here which has all these steps.

@brucejo just the part meteor npm install --global --production windows-build-tools is the only thing I had to do from those install instructions. Actually when I tried to run meteor npm install -g node-gyp I got errors.

Make note that I ran these commands from an admin shell in the app directory and used meteor at the start of the command.

I had the problem while upgrading with fourseven:scss@3.2.0 package. I added the package again manually with meteor add fourseven:scss and it upgraded correctly. Then my whole meteor upgrade worked. I am using ubuntu, if anyone had the same problem :slight_smile:

Can confirm this worked for me on Windows 10. I had Windows Build Tools installed as described in the migrating to 1.4 and I ran npm install -g node-gyp in an Admin permission cmd.