I am trying to do a very simple "npm install" from one of the repos found from a tutorial found here
The package.json is as follows:
{
"name": "react-playlist",
"version": "1.0.0",
"description": "A simple react to-do list",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npm run build",
"build": "webpack -d && webpack-dev-server --content-base src/ --inline --
hot --port 1234 --history-api-fallback"
},
"repository": {
"type": "git",
"url": "git+https://github.com/iamshaunjp/react-playlist.git"
},
"keywords": [
"react"
],
"author": "The Net Ninja",
"license": "MIT",
"bugs": {
"url": "https://github.com/iamshaunjp/react-playlist/issues"
},
"homepage": "https://github.com/iamshaunjp/react-playlist#readme",
"dependencies": {
"react": "^15.3.2",
"react-dom": "^15.3.2",
"react-router": "^3.0.0"
},
"devDependencies": {
"babel-core": "^6.16.0",
"babel-loader": "^6.2.5",
"babel-preset-es2015": "^6.16.0",
"babel-preset-react": "^6.16.0",
"css-loader": "^0.25.0",
"style-loader": "^0.13.1",
"webpack": "^1.13.2",
"webpack-dev-server": "^1.16.1"
}
}
When I run "npm install", I get an error about "no valid versions available for pinkie-promise". I looked on npm, and it seems pinkie-promise is deprecated and removed. How do I remove it from my package.json if it doesn't even show up there?
Here is the npm log for this error (Only included the bit with the error):
1281 silly resolveWithNewModule [email protected] checking installable status
1282 silly pacote range manifest for pkg-dir@^1.0.0 fetched in 3ms
1283 silly resolveWithNewModule [email protected] checking installable status
1284 silly pacote range manifest for find-up@^1.0.0 fetched in 2ms
1285 silly resolveWithNewModule [email protected] checking installable status
1286 silly fetchPackageMetaData error for pinkie-promise@^2.0.0 No valid
versions available for pinkie-promise
1287 silly pacote range manifest for path-exists@^2.0.0 fetched in 4ms
1288 silly resolveWithNewModule [email protected] checking installable status
1289 verbose type range
1290 verbose stack pinkie-promise: No valid versions available for pinkie-
promise
1290 verbose stack at pickManifest
(/usr/local/lib/node_modules/npm/node_modules/pacote/node_modules/npm-pick-
manifest/index.js:19:11)
1290 verbose stack at fetchPackument.then.packument
1290 verbose stack at tryCatcher
at runCallback (timers.js:800:20)
1290 verbose stack at tryOnImmediate (timers.js:762:5)
1290 verbose stack at processImmediate [as _immediateCallback]
(timers.js:733:5)
1291 verbose cwd /root/Desktop/LeagueSystemWebApp
1292 verbose Linux 4.4.0-104-generic
1293 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
1294 verbose node v9.2.1
1295 verbose npm v5.5.1
1296 error code ENOVERSIONS
1297 error No valid versions available for pinkie-promise
1298 verbose exit [ 1, true ]
A work around is to npm install pinkie-promise by pointing to their github repo.
npm install https://github.com/floatdrop/pinkie-promise.git
It is not your mistake.
Official issue: https://github.com/npm/registry/issues/255
Official status: https://status.npmjs.org/incidents/41zfb8qpvrdj
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With