简体   繁体   English

错误的ERR! 404 Not Found:小指承诺

[英]npm ERR! 404 Not Found: pinkie-promise

我正在尝试安装Ionic Pro,我在推动实时部署时遇到了这个错误。任何帮助都会很高兴

npm install --quiet --no-optional

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: pinkie@2.0.4 (node_modules/pinkie):

npm WARN 404 SKIPPING OPTIONAL DEPENDENCY: Not Found: pinkie@https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz

npm ERR! code E404

npm ERR! 404 Not Found: pinkie-promise@https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz

npm ERR! A complete log of this run can be found in:

npm ERR! /home/gitlab-runner/.npm/_logs/2018-01-06T18_55_47_426Z-debug.log

npm install --quiet --no-optional failed

Running after script...

$ run "clean-up"

Running Stage clean-up for Job: 5211838

ERROR: Job failed: exit status 1

A little under a year ago, the package "leftpad" broke NPM builds all over the world because the author pulled it from the public repository. 不到一年前,由于作者将其从公共存储库中删除,因此“leftpad”软件包打破了全世界的NPM构建。

The same is happening today, for "pinkie-promise". 今天也是如此,因为“小指承诺”。 The author's NPM account (@floatdrop) was deleted, opening opportunities for malware in all the packages he's written. 作者的NPM帐户(@floatdrop)已被删除,为他撰写的所有软件包中的恶意软件打开了机会。

Dependent builds include Ionic and (in my case) node-sass. 依赖构建包括Ionic和(在我的情况下)node-sass。

Resources: 资源:

通过指向他们的github repo安装pinkie-promise,我能够解决这个问题。

npm install https://github.com/floatdrop/pinkie-promise.git

Solution to make project build work again 使项目构建再次工作的解决方案

Since this dependency is not available on npm registry, one will have to do the following to make it work. 由于npm注册表中没有此依赖项,因此必须执行以下操作才能使其正常工作。

Follow these steps to make things work again. 请按照以下步骤重新运行。

  1. rm -rf node_modules/
  2. rm -rf package-lock.json
  3. npm i https://github.com/floatdrop/pinkie-promise.git

In the end you will see the output 最后,您将看到输出

+ pinkie-promise@2.0.1 + pinkie-promise@2.0.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 没有适用于小指承诺的有效版本 - No valid versions available for pinkie-promise npm ERR! 找不到404:1.9.1@latest - npm ERR! 404 Not Found: 1.9.1@latest npm ERR! 代码E404,npm错误! 404未找到:@XXXX - npm ERR! code E404, npm ERR! 404 Not Found: @XXXX npm 错误! 404 未找到:event-stream@3.3.6 - npm ERR! 404 Not Found: event-stream@3.3.6 Nexus 3 作为 npm 存储库找不到一些依赖项:npm ERR! 404未找到: - Nexus 3 as npm repository can't find some dependencies: npm ERR! 404 Not Found: eslint npm ERR: 404 Not Found - GET https.//registry.npmjs.org/eslist - 未找到 - eslint npm ERR! 404 Not Found - GET https://registry.npmjs.org/eslist - Not found 错误的ERR! 404'@ reactivex / rxjs'不在npm注册表中 - npm ERR! 404 '@reactivex/rxjs' is not in the npm registry 创建新的角度应用程序时出错(找不到npm ERR!404:@ angular / animations @〜7.1.0。) - Error while creating new angular application(npm ERR! 404 Not Found: @angular/animations@~7.1.0.) npm ERR: 404 Not Found - GET https.//registry.npmjs org/error-ex - npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex VEDIAACCIO: npm ERR: 404 Not Found - GET https.//npm.xyz.com/flatted - 没有可用的 ZEFE90A8E604A7C840E88D03A67F6 - VEDIACCIO : npm ERR! 404 Not Found - GET https://npm.xyz.com/flatted - no such package available
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM