TencentCloudBase / cloudbase-cli

The cli tool for cloudbase
ISC License
46 stars 12 forks source link

安装报错 #34

Closed Charlotte-feng closed 1 year ago

Charlotte-feng commented 1 year ago

系统:win10 node: 14.18.1 报错详情: npm ERR! code EEXIST npm ERR! path D:\nodejs1418\node-v14.18.1-win-x64\node_modules\@cloudbase\cli\node_modules\@cloudbase\framework-core\node_modules\@cloudbase\toolbox\node_modules.bin\nanoid.ps1 npm ERR! Refusing to delete D:\nodejs1418\node-v14.18.1-win-x64\node_modules\@cloudbase\cli\node_modules\@cloudbase\framework-core\node_modules\@cloudbase\toolbox\node_modules.bin\nanoid.ps1: ../../../../_nanoid@3.3.4@nanoid/bin/nanoid.cjs symlink target is not controlled by npm D:\nodejs1418\node-v14.18.1-win-x64\node_modules\@cloudbase\cli\node_modules\@cloudbase\framework-core\node_modules\@cloudbase\toolbox\node_modules\nanoid npm ERR! File exists: D:\nodejs1418\node-v14.18.1-win-x64\node_modules\@cloudbase\cli\node_modules\@cloudbase\framework-core\node_modules\@cloudbase\toolbox\node_modules.bin\nanoid.ps1 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\rfeng\AppData\Roaming\npm-cache_logs\2022-09-14T04_58_04_962Z-debug.log

盼回复~

Charlotte-feng commented 1 year ago

去全局node_modules里面删掉@cloudbase文件,再重新安装就好了。