最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

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

IT培训 admin 5浏览 0评论

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

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

回答如下:

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

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

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

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

回答如下:

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

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

发布评论

评论列表 (0)

  1. 暂无评论