npm ERR! Invalid tag name “@vue-cli”: Tags may not have any characters that encodeURIComponent encodes.

记录一次粗心的报错

正确命令

npm install -g @vue/cli

错误命令

npm install -g @vue-cli
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "@vue-cli": Tags may not have any characters that encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\software\AppData\Local\npm-cache\_logs\2022-06-10T06_46_38_442Z-debug.log

错误示例

正确示例

Logo

前往低代码交流专区

更多推荐