当前位置: 首页 > 知识库问答 >
问题:

npm安装-g generator-jhipster Windows随python发出的问题

乜璞瑜
2023-03-14

我现在真的需要在Windows上安装Python来使用jhipster???
一个月前,Python没有任何问题。

D:\Perso\missa>npm install -g generator-jhipster
-


> fidonet-mailer-binkp-crypt@0.0.21 install C:\Users\A10282\AppData\Roaming\npm
node_modules\generator-jhipster\node_modules\yeoman-generator\node_modules\down
oad\node_modules\decompress\node_modules\decompress-unzip\node_modules\adm-zip\
ode_modules\fidonet-mailer-binkp-crypt
> node-gyp configure build

\
C:\Users\A10282\AppData\Roaming\npm\node_modules\generator-jhipster\node_module
\yeoman-generator\node_modules\download\node_modules\decompress\node_modules\de
ompress-unzip\node_modules\adm-zip\node_modules\fidonet-mailer-binkp-crypt>node
"C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\
ode-gyp\bin\node-gyp.js" configure build
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:103:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\nod
-gyp\lib\configure.js:64:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.:99:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_mod
les\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\A10282\AppData\Roaming\npm\node_modules\generator-jhipste
\node_modules\yeoman-generator\node_modules\download\node_modules\decompress\no
e_modules\decompress-unzip\node_modules\adm-zip\node_modules\fidonet-mailer-bin
p-crypt
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodej
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "generator-jhipster"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

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 'node-g
p configure build'.
npm ERR! This is most likely a problem with the fidonet-mailer-binkp-crypt pack
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! Please include the following file with any support request:
npm ERR!     D:\Perso\missa\npm-debug.log

共有1个答案

房项禹
2023-03-14

这是因为adm-zip包中有一个新的依赖项:https://github.com/cthackers/adm-zip/issues/121

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

 类似资料:
  • 请大佬指教,我pnpm安装的包,node_modules 里也看到了,但是import还是未导入,还是红色的 这个是vue3打印包的安装

  • 我已经在. npmrc文件中设置了代理配置。执行npm安装命令给我错误如下" $npm安装npm ERR!Windows_NT6.1.7601 npm ERR!Argv"C:\Program Files\nodejs\node.exe"C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js"安装npm ERR!节点v6.9.4 npm ERR

  • 我是一个初学者,我正在努力学习角,所以我试图安装一个新的项目与角种子。但是当我安装npm时,我得到一个错误,我不知道是从哪里来的。我已经安装了节点。版本是5.5.0。这是我在控制台得到的错误。

  • 我正在学习如何使用NodeJS的express框架。使用安装express时遇到问题

  • PS:我是nodejs和mongodb的初学者。事实上,这是我与nodejs和mongodb的第一天,我正在关注tutsplus的基本视频系列 我得到错误,而安装mongoDB模块...说明:Mac OX Lion,Xcode最新安装,MongoDB shell版本:2.4.3(通过自制安装),npm-v1.2.15,节点-v0.10.2 kerberos@0.0.2安装/Users/mohit/

  • 我使用npm很长一段时间了(使用Win10)-在防火墙/权限等方面没有改变任何东西,突然间我在尝试安装任何软件包时出现以下错误: C:\udemy-button>npm安装引导程序--保存npm错误!路径C:\udemy-button\node_modules\fsevents\node_modules\aws4\package.json npm err!代码EPERM npm错误!错误-4048