【问题标题】:Error shows when I try to install Cypress当我尝试安装 Cypress 时显示错误
【发布时间】:2020-07-31 11:28:36
【问题描述】:

我已经安装了 node 和 npm。现在我正在尝试安装赛普拉斯。但我收到以下错误:

npm install cypress --save-dev npm 错误!代码 E404 npm 错误! 404 未找到 - 获取 https://registry.npmjs.org/cypress/-/cypress-3.8.3.tgz npm 错误! 404 npm 错误! 404 'cypress@^3.3.1' 不在 npm 注册表中。 npm 错误! 404 你应该让作者发布它(或自己使用名称!) npm 错误! 404 npm 错误! 404 请注意,您也可以从 npm 错误! 404 tarball、文件夹、http url 或 git url。

npm 错误!可以在以下位置找到此运行的完整日志: npm 错误! C:\Users\AppData\Roaming\npm-cache_logs\2020-07-31T11_02_43_483Z-debug.log

谁能帮我解决这个问题?

【问题讨论】:

  • C:\Users\AppData\Roaming\npm-cache_logs\2020-07-31T11_02_43_483Z-debug.log 有什么错误?
  • 抱歉无法发布所有错误。错误:如果以 ok 1 verbose cli [ 1 verbose cli 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules \\npm\\bin\\npm-cli.js',1 个详细的 cli 'install',1 个详细的 cli 'cypress',1 个详细的 cli'--save-dev' 1 个详细的 cli ] 2 使用 npm@6.14 的信息。 6 3 使用 node@v12.18.3 的信息 4 详细配置 跳过项目配置:C:\Users\beenushrestha/.npmrc。 (匹配 userconfig)5 详细的 npm-session 2bb7df74c3c95e43 6 傻安装 loadCurrentTree 7 傻安装 readLocalPackageData
  • 设置注册表registry.npmjs.org -- 试试这个并确认
  • 我试过这个。 D:\Cypress>npm config get registry registry.npmjs.org 仍然出现错误: npm install cypress --save-dev npm ERR!代码 E404 npm 错误! 404 未找到 - 获取 registry.npmjs.org/cypress npm 错误! 404 npm 错误! 404 'cypress@latest' 不在 npm 注册表中。 npm 错误! 404 你应该让作者发布它(或自己使用名称!)npm ERR! 404 npm 错误! 404 请注意,您也可以从 npm ERR 安装! 404 tarball、文件夹、http url 或 git url。

标签: installation cypress


【解决方案1】:

NPM 当前已关闭。您可以在他们的状态页面上关注更新。

https://status.npmjs.org/#

【讨论】:

    【解决方案2】:

    操作系统恢复后终于可以使用了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-05
      • 2020-10-06
      相关资源
      最近更新 更多