美文网首页
npm ERR! code EINVALIDPACKAGENAM

npm ERR! code EINVALIDPACKAGENAM

作者: 海豚先生的博客 | 来源:发表于2021-12-28 14:22 被阅读0次

    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便可以卸载包

    相关文章

      网友评论

          本文标题:npm ERR! code EINVALIDPACKAGENAM

          本文链接:https://www.haomeiwen.com/subject/cxypqrtx.html