gpt4 book ai didi

angularjs - Windows 中的 npm install -g generator-X 错误

转载 作者:搜寻专家 更新时间:2023-10-31 23:48:09 24 4
gpt4 key购买 nike

两者都产生相同的错误。

  • npm install -g generator-angular-fullstack。
  • npm install -g generator-meanjs。

我尝试了一切(谷歌搜索和 stackoverflow),但在过去的 3-4 小时里这个问题一直困扰着我任何支持都会有所帮助

我试过了

npm install -g generator-angular-fullstack 

 npm install -g generator-meanjs 

最初它说 python 需要我安装最新的 python 但它再次说不兼容版本我搜索并发现支持 2.7.3 所以我卸载最新版本并安装 2.7.3 并设置它的环境变量。

但是现在显示了

gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1

cmd 上的完整错误堆栈:-

gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\Rachit\AppData\Roaming\npm\node_modules\generator-angular-
fullstack\node_modules\yeoman-generator\node_modules\download\node_modules\decom
press\node_modules\decompress-unzip\node_modules\adm-zip\node_modules\fidonet-ma
iler-binkp-crypt
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
|
> yo@1.3.3 postinstall C:\Users\Rachit\AppData\Roaming\npm\node_modules\generato
r-angular-fullstack\node_modules\yo
> yodoctor


Yeoman Doctor
Running sanity checks on your system

√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory

Everything looks all right!
npm ERR! fidonet-mailer-binkp-crypt@0.0.21 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fidonet-mailer-binkp-crypt@0.0.21 install script.
npm ERR! This is most likely a problem with the fidonet-mailer-binkp-crypt packa
ge,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls fidonet-mailer-binkp-crypt
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "generator-angular-fulls
tack"
npm ERR! cwd C:\Users\Rachit\Desktop\node_example
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Rachit\Desktop\node_example\npm-debug.log
npm ERR! not ok code 0

我使用的是 windows 7 32 位

npm-debug.log

最佳答案

adm-zip v0.4.5 引入了对 fidonet-mailer-binkp-crypt 的依赖: https://github.com/cthackers/adm-zip/issues/121

解决方法:npm install --save-dev --save-exact adm-zip@0.4.4

关于angularjs - Windows 中的 npm install -g generator-X 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28407965/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com