Npm ERR! 404 Not found: pinky promise

I am trying to install Ionic Pro, and I am getting this error while you run the deployment in real time. Any help would be greatly appreciated.

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

+5
source share
3 answers

A little less than a year ago, the "leftpad" package broke NPM builds around the world because the author pulled it out of a public repository.

The same thing is happening today, for the "little finger-promise." The author’s NPM account (@floatdrop) was deleted, exposing malware to all the packages that he wrote.

Dependent assemblies include Ionic and (in my case) node-sass.

Resources

+6
source

I managed to get around this by setting my pinky promise, pointing to their github repo.

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

0
source

The decision to get the project to work again

Since this dependency is not available in the npm registry, it will require the following to work.

Follow these steps to make it work again.

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

At the end you will see the exit

+ pinkie-promise@2.0.1

0
source

Source: https://habr.com/ru/post/1274546/


All Articles