![](/img/trans.png)
[英]npm error code EINVALIDTAGNAME when trying to install protobufjs
[英]npm ERR! code EINVALIDTAGNAME in installing a package
我正在嘗試在我的 React 應用程序中安裝 package,但出現此錯誤
$ npm install xlsx
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "react-scripts start": Tags may not have any characters that encodeURIComponent encodes.
這是我在 package.json 中的腳本
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
React 的版本是 17,我的節點版本是 17,但應用程序是由不同版本的節點創建的
我不知道該怎么辦
這是因為我的 npm 版本我降級了,問題解決了
npm install -g npm@6.14.14
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.