[英]npm install getting stopped when an error occurred
发生错误时,npm安装将停止
npm ERR! 404 '@typescript-eslint/parser@^1.3.0' is not in the npm registry. npm ERR! 404 Your package name is not valid, because npm ERR! 404 1. name can only contain URL-friendly characters npm ERR! 404 It was specified as a dependency of 'angular-gettext-tools'
请帮忙
尝试这个
npm install @typescript-eslint/parser --save-dev
请执行下列操作:
npm install @typescript-eslint/parser --save-dev
然后:在ESLint配置文件中,设置解析器属性:
{
"parser": "@typescript-eslint/parser"
}
有关更多信息: https : //www.npmjs.com/package/typescript-eslint-parser
我已经在“ .npmrc”文件中添加了以下行,然后解决了问题
@typescript-eslint:registry="https://registry.npmjs.org"
谢谢你们的建议
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.