我正在尝试安装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/
答案 0 :(得分:0)
我遵循此处找到的解决方案:NPM Package not found but found on website
我的〜/ .npmrc文件似乎具有身份验证信息,但是我在https://registry.npmjs.org/上没有帐户