发生错误时,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'
请帮助
答案 0 :(得分:0)
尝试
npm install @typescript-eslint/parser --save-dev
答案 1 :(得分:0)
执行以下操作:
<select ng-model="selectedValue" data-ng-options="item.id as item.name for item in users | filter:customFilter"></select>
然后: 在您的ESLint配置文件中,设置解析器属性:
$scope.customFilter = function(row){
if(row.roles.includes("Tech")){
return true;
}
else{
return false;
}
}
有关更多信息:https://www.npmjs.com/package/typescript-eslint-parser
答案 2 :(得分:0)
我已将以下行添加到“ .npmrc”文件中,然后问题解决了
@typescript-eslint:registry="https://registry.npmjs.org"
谢谢大家的建议