尝试安装sinon时遇到错误,提示未找到@ sinonjs / commons短语“名称只能包含URL友好字符”

时间:2019-02-18 19:01:09

标签: node.js npm sinon

我正在尝试安装sinon,但出现以下错误:

npm ERR! 404  '@sinonjs/commons@^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 'sinon'

节点版本:10.15.1

NPM版本:6.8.0

我尝试跑步:

  

npm install --save-dev sinon

我已检查我的NPM注册表为https://registry.npmjs.org/

1 个答案:

答案 0 :(得分:0)

我遵循此处找到的解决方案:NPM Package not found but found on website

我的〜/ .npmrc文件似乎具有身份验证信息,但是我在https://registry.npmjs.org/上没有帐户

相关问题