无论何时运行npm命令,如npm install和npm update。我收到以下错误。
npm ERR!代码ETARGETnpm ERR!notarget找不到的匹配版本express@undefined4.16.3npm ERR!notarget在大多数情况下,您或您的某个依赖项正在请求npm ERR!不要以不存在的包版本为目标。npm ERR!无目标npm ERR!notarget它被指定为"MacBook"的依赖项npm ERR!无目标
我尝试过通过brew重新安装node,但也出现了同样的错误。
在安装npm之前应该有配置文件。它应该可以解决这个问题。之后输入以下命令:
npm install
npm start
;npm ERR!notarget找不到的匹配版本&";,在我的情况下,是我使用npm镜像registry=https://registry.npmmirror.com
,而镜像没有与registry=https://registry.npmjs.com
同步