npm install commands throws errors
- Ngôn ngữ chính
- JavaScript
- Star
- 11.3k
- Fork
- 3k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
> bufferutil@1.2.1 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 utf-8-validate@1.2.1
> node-sass@3.10.0 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 bufferutil@1.2.1
> blur_admin@1.2.0 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! blur_admin@1.2.0 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the blur_admin@1.2.0 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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.