Cannot add bootstrap4 or materialize

Hello guys,

For some reason whenever I try to add any package out there with materalize CSS or bootstrap 4, I am getting errors…

Here’s an example of one


C:\Projects\ConeTrips>meteor add huttonr:bootstrap4
 => Errors while adding packages:

While loading huttonr:bootstrap4@4.0.0_15...:
error: Command failed:
C:\Users\Aleksei\AppData\Local\.meteor\packages\meteor-tool\1.4.2_6\mt-os.windows.x86_32\dev_bundle\bin\npm.cmd
rebuild --update-binary

npm ERR! Windows_NT 10.0.14393
npm ERR! argv
"C:\\Users\\Aleksei\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_6\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\Aleksei\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_6\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"
"rebuild" "--update-binary"
npm ERR! node v4.7.3
npm ERR! npm  v4.1.2
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! path C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe
npm ERR! thread-sleep@1.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn C:\WINDOWS\system32\cmd.exe ENOENT
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! Windows_NT 10.0.14393
npm ERR! argv
"C:\\Users\\Aleksei\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_6\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\Aleksei\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_6\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"
"rebuild" "--update-binary"
npm ERR! node v4.7.3
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE

npm ERR! thread-sleep@1.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status -4058
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!
C:\Users\Aleksei\AppData\Local\Temp\mt-19h2udd\plugin.build-bootstrap4.os.windows.x86_32\npm\node_modules\meteor\build-bootstrap4\node_modules\.temp-1x08789\npm-debug.log

npm ERR! Windows_NT 10.0.14393
npm ERR! argv
"C:\\Users\\Aleksei\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_6\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\Aleksei\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_6\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"
"rebuild" "--update-binary"
npm ERR! node v4.7.3
npm ERR! npm  v4.1.2
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! path C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe
npm ERR! thread-sleep@1.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn C:\WINDOWS\system32\cmd.exe ENOENT
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! Windows_NT 10.0.14393
npm ERR! argv
"C:\\Users\\Aleksei\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_6\\mt-os.windows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\Aleksei\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.2_6\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"
"rebuild" "--update-binary"
npm ERR! node v4.7.3
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE

npm ERR! thread-sleep@1.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status -4058
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!
C:\Users\Aleksei\AppData\Local\Temp\mt-19h2udd\plugin.build-bootstrap4.os.windows.x86_32\npm\node_modules\meteor\build-bootstrap4\node_modules\.temp-1x08789\npm-debug.log

How do I fix this? I also tried meteor add materialize:materialize and chuikoff:bootstrap-4

Sorry mate, no experience on Windows… I have had issues when things complain about node-pre-gyp though… it usually ends up having something to do with my node/npm version.

Any time I run into problems with either node_modules or meteor packages, unless I’m customizing them, I try to scortched-earth remove them all and add again. It is usually less time than tracking down which is currently messed up.

best of luck

I ended up using bootstrapv3 instead. At least it works. :grinning: