尝试安装sinon时出错,@ sinonjs / commons未找到短语“name只能包含URL友好字符”

问题描述 投票:0回答:1

我正在尝试安装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/

node.js npm sinon
1个回答
0
投票

我按照这里找到的解决方案:NPM Package not found but found on website

好像我的〜/ .npmrc文件有身份验证信息,但我没有https://registry.npmjs.org/的帐户

© www.soinside.com 2019 - 2024. All rights reserved.