npm install commands throws errors
npm install command throws many errors. I am using version 4.5.0. git is also installed on my machine. Any ideas? Below is the error log:
gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PY HON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\no e_modules\node-gyp\lib\configure.js:449:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\nod -gyp\lib\configure.js:404:11 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\node s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd E:\Study\GithubCode\BlurAdmin\node_modules\gulp-protractor\node_mo ules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\ut -8-validate gyp ERR! node -v v4.5.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok
[email protected] install E:\Study\GithubCode\BlurAdmin\node_modules\gulp-prot actor\node_modules\protractor\node_modules\selenium-webdriver\node_modules\ws\n de_modules\bufferutil node-gyp rebuild
E:\Study\GithubCode\BlurAdmin\node_modules\gulp-protractor\node_modules\protrac or\node_modules\selenium-webdriver\node_modules\ws\node_modules\bufferutil>if n t defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\b n\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (n de "" rebuild ) gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PY HON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\no e_modules\node-gyp\lib\configure.js:449:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\nod -gyp\lib\configure.js:404:11 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\node s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd E:\Study\GithubCode\BlurAdmin\node_modules\gulp-protractor\node_mo ules\protractor\node_modules\selenium-webdriver\node_modules\ws\node_modules\bu ferutil gyp ERR! node -v v4.5.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN optional dep failed, continuing [email protected]
[email protected] postinstall E:\Study\GithubCode\BlurAdmin\node_modules\gulp- ass\node_modules\node-sass node scripts/build.js
"E:\Study\GithubCode\BlurAdmin\node_modules\gulp-sass\node_modules\node-sass\ve dor\win32-x64-46\binding.node" exists. testing binary. Binary is fine; exiting. npm WARN optional dep failed, continuing [email protected]
[email protected] postinstall E:\Study\GithubCode\BlurAdmin bower install
'bower' is not recognized as an internal or external command, operable program or batch file.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: bower install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'bower install'.
npm ERR! This is most likely a problem with the blur_admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs blur_admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls blur_admin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! E:\Study\GithubCode\BlurAdmin\npm-debug.log
Reinstall node-gyp and try again, it will automatic install python and config env when you install node-gyp in windows.
I too had the same issue, I just viewed the package.json file, saw that it need bower to be install to run all the dependencies, so just installed bower using npm install -g bower, and then used the cmd, npm install, it worked like a swing.
May be the author should mention to install bower too or change the package.json to install the dependencies through npm / node instead of bower.