赞
踩
系统win10,执行命令“npm install -g @ohos/hpm-cli”,报错如下:
npm ERR! code EEXIST
npm ERR! path C:\Users\jay\AppData\Roaming\npm\node_modules\@ohos\hpm-cli\bin\hpm
npm ERR! dest C:\Users\jay\AppData\Roaming\npm\hpm
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\jay\AppData\Roaming\npm\node_modules\@ohos\hpm-cli\bin\hpm' -> 'C:\Users\jay\AppData\Roaming\npm\hpm'
npm ERR! File exists: C:\Users\jay\AppData\Roaming\npm\hpm
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\jay\AppData\Roaming\npm-cache\_logs\2020-10-21T13_50_56_526Z-debug.log
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command npm install -g @ohos/hpm-cli" terminated with exit code: 1.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。