npm安装的包npm可以卸载,cnpm 安装的包,但是cnpm、npm无法卸载,报错信息如下
npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "_vue@2.6.14@vue": name cannot start with an underscore; name can only contain URL-friendly characters
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hanyuqian/.npm/_logs/2021-12-28T03_52_39_378Z-debug.log
解决方案
需要先npm init 写入一个英文的项目名称
一路回车,便可生成package.json
重新安装
cnpm便可以卸载包
网友评论