[英]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
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. 请按照以下步骤重新运行。
rm -rf node_modules/
rm -rf package-lock.json
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.