Error install "npm install" bootstrap 4 ( build tools ) - npm

I setup build tools for study. But i installed nodejs and go to cmd for setup with "npm install", it show me an error. How can i fix this?
Tks.
Error info:
C:\Users\users\Downloads\bootstrap-custom>npm install
iltorb#1.3.10 install C:\Users\micha\Downloads\bootstrap-custom\node_modules\iltorb
detect-libc prebuild-install || node-gyp rebuild
prebuild-install info begin Prebuild-install version 2.5.1
prebuild-install info looking for local prebuild # prebuilds\iltorb-v1.3.10-node-v59-win32-x64.tar.gz
prebuild-install info looking for cached prebuild # C:\Users\users\AppData\Roaming\npm-cache_prebuilds\https-github.com-MayhemYDG-iltorb-releases-download-v1.3.10-iltorb-v1.3.10-node-v59-win32-x64.tar.gz
prebuild-install http request GET https://github.com/MayhemYDG/iltorb/releases/download/v1.3.10/iltorb-v1.3.10-node-v59-win32-x64.tar.gz
prebuild-install http 404 https://github.com/MayhemYDG/iltorb/releases/download/v1.3.10/iltorb-v1.3.10-node-v59-win32-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=9.11.1 runtime=node arch=x64 platform=win32)
C:\Users\users\Downloads\bootstrap-custom\node_modules\iltorb>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\micha\AppData\Local\Programs\Python\Python36-32\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:170:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\micha\Downloads\bootstrap-custom\node_modules\iltorb
gyp ERR! node -v v9.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN rollback Rolling back readable-stream#2.2.9 failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\Users\users\Downloads\bootstrap-custom\node_modules\fsevents\node_modules'
npm WARN bootstrap#4.1.0 requires a peer of jquery#1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! iltorb#1.3.10 install: detect-libc prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iltorb#1.3.10 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\users\AppData\Roaming\npm-cache_logs\2018-04-10T11_50_16_425Z-debug.log

At least one of your problems is that your bootstrap package requires jQuery 1.9.1 or above, see the package.json file
"peerDependencies": {
"jquery": "1.9.1 - 3",
"popper.js": "^1.14.0" },
So all you really need to do is install jQuery and re-run npm install on your bootstrap package. So something like this should do it:-
# get back to the directory where your bootstrap package is
cd bootstrap-4.1.0
# install latest version of jQuery
npm i jquery
# re-install the bootstrap package
npm install
(I notice you are on Windows so do the equivalent of the above.) Go through all your packages that are in error or have a warning and make sure that they are installed.

Related

pkcs11js#1.0.19 script failure installing Hyperledger Caliper CLI from NPM v0.2.0

I am trying to install Hyperledger Caliper CLI from npm.
However, can't bind the sut, fabric SDK with caliper. It shows the following -
2020.01.12-19:29:43.747 info [caliper] [bind] Calling npm with: install grpc#1.14.2 fabric-ca-client#1.4.4 fabric-client#1.4.4 fabric-protos#2.0.0-snapshot.1 fabric-network#1.4.4
npm WARN deprecated hoek#4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
> pkcs11js#1.0.19 install /home/necos/caliper/caliper-benchmarks/node_modules/pkcs11js
> node-gyp rebuild
gyp WARN EACCES current user ("necos") does not have permission to access the dev dir "/root/.cache/node-gyp/8.10.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/necos/caliper/caliper-benchmarks/node_modules/pkcs11js/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/necos/caliper/caliper-benchmarks/node_modules/pkcs11js/.node-gyp'
gyp ERR! System Linux 4.15.0-74-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/necos/caliper/caliper-benchmarks/node_modules/pkcs11js
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN notsup Unsupported engine for fabric-protos#2.0.0-snapshot.1: wanted: {"node":"^8.9.0","npm":"^5.5.1"} (current: {"node":"8.10.0","npm":"6.13.6"})
npm WARN notsup Not compatible with your version of node/npm: fabric-protos#2.0.0-snapshot.1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pkcs11js#1.0.19 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pkcs11js#1.0.19 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-01-12T22_30_01_834Z-debug.log
2020.01.12-19:30:01.898 error [caliper] [bind] Failed to execute "npm" with return code 1.
Error: Failed to execute "npm" with return code 1.
at ChildProcess.proc.on (/home/necos/caliper/caliper-benchmarks/node_modules/#hyperledger/caliper-cli/lib/utils/cmdutils.js:56:35)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
Command failed
I tried node-gyp rebuild, but seems of no use.
Anybody can clarify what's happening here?
Installation environment:
Ubuntu bionic on the server,
NodeJS v8.10
node-gyp v6.1.0
node-pre-gyp v0.14.0
Docker v19.03.1
Docker-compose v0.19.20
This is the root of the problem:
gyp WARN EACCES current user ("necos") does not have permission to access the dev dir "/root/.cache/node-gyp/8.10.0
The Caliper install guide contains workarounds for this problem:
https://hyperledger.github.io/caliper/vLatest/installing-caliper/#installing-from-npm
The above is inspired by the official NPM guide for the same problem:
https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

I could not successfully use install npm packages

I'm trying to download some source code and build a software. the README file said it need to use npm tools. like first use npm install, then npm run build, then npm run dev. However, I got stuck when I'm trying to use npm install. I could not successfully install npm packages.
Below are some error messages:
C:\Users\michael liu\Desktop\IBSMK\ibsmk\node_modules\usb-detection>if not defined npm_config_node_gyp (node "C:\Users\michael liu\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\michael liu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
detection.cpp
deviceList.cpp
detection_win.cpp
win_delay_load_hook.cc
..\src\detection_win.cpp(5): fatal error C1083: Cannot open include file: 'atlstr.h': No such file or directory [C:\Users\michael liu\Desktop\IBSMK\ibsmk\node_modules\usb-detection\build\detection.vcxproj]
..\src\detection.cpp(60): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\michael liu\Desktop\IBSMK\ibsmk\node_modules\usb-detection\build\detection.vcxproj]
C:\Users\michael liu\Desktop\IBSMK\ibsmk\node_modules\usb-detection\node_modules\nan\nan.h(1740): note: see declaration of 'Nan::Callback::Call'
..\src\detection.cpp(105): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\michael liu\Desktop\IBSMK\ibsmk\node_modules\usb-detection\build\detection.vcxproj]
C:\Users\michael liu\Desktop\IBSMK\ibsmk\node_modules\usb-detection\node_modules\nan\nan.h(1740): note: see declaration of 'Nan::Callback::Call'
..\src\detection.cpp(195): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\michael liu\Desktop\IBSMK\ibsmk\node_modules\usb-detection\build\detection.vcxproj]
C:\Users\michael liu\Desktop\IBSMK\ibsmk\node_modules\usb-detection\node_modules\nan\nan.h(1740): note: see declaration of 'Nan::Callback::Call'
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\michael liu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\michael liu\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\michael liu\Desktop\IBSMK\ibsmk\node_modules\usb-detection
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN IBSMK#1.5.5 No repository field.
npm WARN IBSMK#1.5.5 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! usb-detection#4.3.0 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the usb-detection#4.3.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\michael liu\AppData\Roaming\npm-cache\_logs\2019-07-30T02_53_24_589Z-debug.log
There was a bunch of problems around the time of Node v10 and Electron
v3 wrt it not reporting to node-abi the right ABI version. The
solution seemed to be "don't use Node v10".
Read this for more explanation

npm install gatsby fails in WSL for contentful example

I am trying to get this git repo to run on my windows machin using WSL....
git clone https://github.com/contentful/starter-gatsby-blog.git
Running npm install gives me the following errors which seem to be on trying to install gatsby-plugin-sharp. Ive tried adding the windows-build-tools and the visual studios C++ 2015 common tools. Not sure what I am missing.
C:\Users\justi\AppData\Local\Microsoft\WindowsApps\ubuntu.exe run "export PATH=/home/linuxbrew/.linuxbrew/bin:$PATH && /home/linuxbrew/.linuxbrew/bin/node /home/linuxbrew/.linuxbrew/lib/node_modules/npm/bin/npm-cli.js install --scripts-prepend-node-path=auto"
> sharp#0.20.5 install /mnt/c/Users/justi/IdeaProjects/starter-gatsby-blog/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.6.1/libvips-8.6.1-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=12.1.0 runtime=node arch=x64 platform=linux)
make: Entering directory '/mnt/c/Users/justi/IdeaProjects/starter-gatsby-blog/node_modules/sharp/build'
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
In file included from ../../nan/nan_converters.h:67:0,
from ../../nan/nan.h:202,
from ../src/common.cc:24:
../../nan/nan_converters_43_inl.h: In static member function 'static Nan::imp::ToFactoryBase<v8::Boolean>::return_t
.........
.........
.........Removing A bunch of variables not compiling
.........
.........
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/linuxbrew/.linuxbrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Linux 4.4.0-17763-Microsoft
gyp ERR! command "/home/linuxbrew/.linuxbrew/Cellar/node/12.1.0/bin/node" "/home/linuxbrew/.linuxbrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /mnt/c/Users/justi/IdeaProjects/starter-gatsby-blog/node_modules/sharp
gyp ERR! node -v v12.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN friendly-errors-webpack-plugin#1.7.0 requires a peer of webpack#^2.0.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp#0.20.5 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp#0.20.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jsmith/.npm/_logs/2019-05-04T15_11_23_965Z-debug.log
Full error log here since it is too big...
https://textuploader.com/1dt49

Can not install Realm for my React Native App

I am trying to install Realm for my React native app and I get the following error, could you suggest what might be wrong.
I am using the command
npm install --save realm
from the web - https://realm.io/docs/javascript/latest/
Error:
npm ERR! Failed at the realm#2.11.0 install script.
I have tried to install
npm install -g node-pre-gyp
and
npm install -g node-gyp
Still did not work. any suggestions would be very helpful
Thanks
R
here is my log
npm install --save realm
> realm#2.11.0 install C:\Development\abcd-Retail-ReactNative\retail-native-app\node_modules\realm
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://static.realm.io/node-pre-gyp/2.11.0/realm-v2.11.0-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for realm#2.11.0 and node#10.1.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:165:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Development\\abcd-Retail-ReactNative\\retail-native-app\\node_modules\\realm\\compiled\\node-v64_win32_x64\\realm.node" "--module_name=realm" "--module_path=C:\\Development\\abcd-Retail-ReactNative\\retail-native-app\\node_modules\\realm\\compiled\\node-v64_win32_x64"
gyp ERR! cwd C:\Development\abcd-Retail-ReactNative\retail-native-app\node_modules\realm
gyp ERR! node -v v10.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js
configure --fallback-to-build --module=C:\Development\abcd-Retail-ReactNative\retail-native-app\node_modules\realm\compiled\node-v64_win32_x64\realm.node --module_name=realm --module_path=C:\Development\abcd-Retail-ReactNative\retail-native-app\node_modules\realm\compiled\node-v64_win32_x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Development\abcd-Retail-ReactNative\retail-native-app\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:957:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:246:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Development\\abcd-Retail-ReactNative\\retail-native-app\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Development\abcd-Retail-ReactNative\retail-native-app\node_modules\realm
node-pre-gyp ERR! node -v v10.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Development\abcd-Retail-ReactNative\retail-native-app\node_modules\realm\compiled\node-v64_win32_x64\realm.node --module_name=realm --module_path=C:\Development\abcd-Retail-ReactNative\retail-native-app\node_modules\realm\compiled\node-v64_win32_x64' (1)
npm WARN eslint-plugin-react-native#3.2.1 requires a peer of eslint#^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native#0.55.4 requires a peer of react#16.3.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-looped-carousel#0.1.13 requires a peer of react-native#^0.54.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! realm#2.11.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the realm#2.11.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Rao\AppData\Roaming\npm-cache\_logs\2018-06-28T14_42_35_122Z-debug.log
Thanks #Ashwin Mothilal, I had to go back to a stable version of Node (v8.11.3). How I did it.
It took a while to figure out the entire procedure, writing down the steps I performed. Hope this helps
1 - Uninstalled Node.js completely from my machine. (Windows)
Followed this link - [How to completely remove node.js from Windows
(Dont forget to restart your PC)
2 - Downloaded and Installed the stable version (8.11.3 LTS) from -
[https://nodejs.org/en/][1]
3 - Restart your machine.
4 - Check the node version now (>> node -v).
5 - In your project remove all node_modules -
rm -rf node_modules/
npm install
link -
[How to clean node_modules folder of packages that are not in package.json?
6 - then do - >>npm install in your project.
This should install all the required dependencies.
7 - Now install Realm.
npm install --save realm
This has successfully added Realm to my project.
Note:
When I was getting this errors which I have posted in my actual question, It recommended me to install 'node-pre-gyp'.
I tried to install
npm install --save node-pre-gyp --fallback-to-build
npm install --save node-pre-gyp
npm install -g node-pre-gyp
Which did not work, so Before I did the steps provided above I have removed 'node-pre-gyp'. In case you have installed any of the above you can please remove them as it was not required.
Hope this helps.
R
1) First Check Node version using below command
node -v
v10.16.0
If Version is not match with 10.16.0 than install node using below link
https://nodejs.org/en/download/
and install node 10.16.0
Install realm using below command
npm install --save realm
Realm install successfully.!!!

Trying to install truffle on Windows 10 by "$npm install - g truffle" Got a bunch of problems

$ npm install -g truffle
npm WARN deprecated to-iso-string#0.0.2: to-iso-string has been deprecated, use #segment/to-iso-string instead.
npm WARN deprecated jade#0.26.3: Jade has been renamed to pug, please install th e latest version of pug instead of jade
npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
scrypt#6.0.3 preinstall C:\Users\Zachary Zhong\AppData\Roaming\npm\node_module s.staging\scrypt-b6fa2906
node node-scrypt-preinstall.js
C:\Users\Zachary Zhong\AppData\Roaming\npm\truffle -> C:\Users\Zachary Zhong\App Data\Roaming\npm\node_modules\truffle\cli.js
C:\Users\Zachary Zhong\AppData\Roaming\npm\truffle-exec -> C:\Users\Zachary Zhon g\AppData\Roaming\npm\node_modules\truffle\exec.js
scrypt#6.0.3 install C:\Users\Zachary Zhong\AppData\Roaming\npm\node_modules\t ruffle\node_modules\scrypt
node-gyp rebuild
C:\Users\Zachary Zhong\AppData\Roaming\npm\node_modules\truffle\node_modules\scr ypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modul es\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Warning: Missing input files:
C:\Users\Zachary Zhong\AppData\Roaming\npm\node_modules\truffle\node_modules\scr ypt\build..\scrypt\win\include\config.h
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h
The system cannot find the file specified.
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\Zachary Zhong\AppData\Roaming\npm\node_modules\truffle \node_modules\scrypt\build\copied_files.vcxproj]
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\Zachary Zhong\AppData\Roaming\npm\node_modules\truffle \node_modules\scrypt\build\scrypt_wrapper.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\ npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Zachary Zhong\AppData\Roaming\npm\node_modules\truffle\nod e_modules\scrypt
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
C:\Users\Zachary Zhong\AppData\Roaming\npm
`-- (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules\truffle\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "truffle"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! scrypt#6.0.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt#6.0.3 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 scrypt 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 scrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls scrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Zachary Zhong\npm-debug.log
npm ERR! code 1
I've got 2 guides for installing on Windows:
Installing on Windows 10 using Ubuntu bash (preferred)
https://davidburela.wordpress.com/2017/05/12/how-to-install-truffle-testrpc-on-ubuntu-or-windows-10-with-windows-subsystem-for-linux/
Installing on Windows
https://davidburela.wordpress.com/2016/11/18/how-to-install-truffle-testrpc-on-windows-for-blockchain-development/
Given that you have not include any details about your dev environment, see this StackOverflow thread that discusses the same problem as yours: node gyp error TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified