gpt4 book ai didi

node.js - 使用 npm install -g Generator-jhipster 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 21:59:12 25 4
gpt4 key购买 nike

我正在按照https://jhipster.github.io/installation.html处的安装步骤进行操作。一切都很顺利,直到生成器 jhipster。当我运行 npm install -g Generator-jhipster 时,出现以下错误,有人可以帮我解决这个问题吗?

C:\Users\smart>npm install -g generator-jhipster
/
> spawn-sync@1.0.13 postinstall C:\Users\smart\AppData\Roaming\npm\node_module
s\generator-jhipster\node_modules\yeoman-generator\node_modules\cross-spawn\node
_modules\spawn-sync
> node postinstall

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" "-g" "generator-jhipster"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! path C:\Users\smart\AppData\Roaming\npm-cache\isarray\0.0.1\package\p
ackage.json
npm ERR! code EPERM
npm ERR! errno -4048

npm ERR! Error: EPERM, rename 'C:\Users\smart\AppData\Roaming\npm-cache\isarra
y\0.0.1\package\package.json'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM, rename 'C:\Users\smart\AppData\Roaming\npm-cache\is
array\0.0.1\package\package.json']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! path: 'C:\\Users\\smart\\AppData\\Roaming\\npm-cache\\isarray\\0.0.
1\\package\\package.json',
npm ERR! parent: 'readable-stream' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\smart\npm-debug.log

最佳答案

请尝试以 root/管理员身份再次运行此命令

你真的尝试过吗?

关于node.js - 使用 npm install -g Generator-jhipster 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31884095/

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