node.js - 尝试安装未找到 @sinonjs/commons 的 sinon 时出现错误,并带有短语“名称只能包含 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 注册表是https://registry.npmjs.org/
解决方案
推荐阅读
- git - 我可以防止在一周中的某些时间合并拉取请求吗?
- ios - iOS UiTableViewCell 子视图中的手势识别器
- css - 无法使用材质 UI 样式更改图标颜色
- file - 有没有办法从 Hadoop hdfs 中列出文件并将文件名存储到本地而不是实际文件本身?
- php - 如何在 Laravel 7 中的数组索引中返回字符串
- python - 为什么标签文本不改变?
- javascript - JS导入类到已经导入的类
- firebase - 想要向新用户显示欢迎页面,并在 Flutter Firebase 中向登录用户显示主屏幕
- php - 1.6.1.24 更新到 1.7.7.4 数据库架构错误
- api - Centreon Web API v2 端点返回 500 - 找不到路由