npm problem when deploying to Heroku
I have trouble deploying the parse-server-example to Heroku. I get a error in the terminal when pushing to Heroku:
npm ERR! fetch failed http://registry.npmjs.org/jpeg-js/-/jpeg-js-0.1.2.tgz
My project.json looks like this:
{
"name": "parse-server-example",
"version": "1.4.0",
"description": "An example Parse API server using the parse-server module",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/ParsePlatform/parse-server-example"
},
"license": "MIT",
"dependencies": {
"express": "4.14.0",
"kerberos": "~0.0.x",
"parse": "*",
"parse-server": "2.2.15",
"parse-image": "*",
"jimp": "*",
"mongodb":"2.1.18"
},
"scripts": {
"start": "node index.js"
},
"engines": {
"node": ">=4.3"
}
}
I think jimp depends on jpeg-js, but does anyone know what causes the above npm error?
Steps to reproduce
- Click "Deploy to Heroku" button on the parse-server-example github page
- Insert
jimpdependency in project.json - Push changed code to heroku
- See in terminal that npm error occurs
Expected Results
Successful deploy of parse server to Heroku.
Actual Outcome
npm ERR! fetch failed http://registry.npmjs.org/jpeg-js/-/jpeg-js-0.1.2.tgz
Environment Setup
- Server
- parse-server version: 2.2.15
- Operating System: (Heroku)
- Hardware: (Heroku)
- Localhost or remote server? Heroku
- Database
- MongoDB version: mLab (3.0.12)
- Storage engine: mLab
- Hardware: mLab
- Localhost or remote server? mLab
Logs/Trace
git push heroku master
Counting objects: 35, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (30/30), done.
Writing objects: 100% (35/35), 23.06 KiB | 0 bytes/s, done.
Total 35 (delta 7), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote: NPM_CONFIG_LOGLEVEL=error
remote: NPM_CONFIG_PRODUCTION=true
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote: engines.node (package.json): >=4.3
remote: engines.npm (package.json): unspecified (use default)
remote:
remote: Resolving node version >=4.3 via semver.io...
remote: Downloading and installing node 5.11.1...
remote: Using default npm version: 3.8.6
remote:
remote: -----> Restoring cache
remote: Skipping cache restore (new runtime signature)
remote:
remote: -----> Building dependencies
remote: Pruning any extraneous modules
remote: Installing node modules (package.json)
remote: npm ERR! fetch failed http://registry.npmjs.org/jpeg-js/-/jpeg-js-0.1.2.tgz
remote: npm ERR! fetch failed http://registry.npmjs.org/jpeg-js/-/jpeg-js-0.1.2.tgz
remote: npm ERR! fetch failed http://registry.npmjs.org/jpeg-js/-/jpeg-js-0.1.2.tgz
remote: npm ERR! Linux 3.13.0-91-generic
remote: npm ERR! argv "/tmp/build_89abfa039e426d6c21559c230269f118/.heroku/node/bin/node" "/tmp/build_89abfa039e426d6c21559c230269f118/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_89abfa039e426d6c21559c230269f118/.npmrc"
remote: npm ERR! node v5.11.1
remote: npm ERR! npm v3.8.6
remote:
remote: npm ERR! fetch failed with status code 502
remote: npm ERR!
remote: npm ERR! If you need help, you may report this error at:
remote: npm ERR! <https://github.com/npm/npm/issues>
remote:
remote: npm ERR! Please include the following file with any support request:
remote: npm ERR! /tmp/build_89abfa039e426d6c21559c230269f118/npm-debug.log
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: Some possible problems:
remote:
remote: - Dangerous semver range (>) in engines.node
remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote: Love,
remote: Heroku
remote:
remote:
remote: ! Push rejected, failed to compile Node.js app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to ....
remote:
To https://git.heroku.com/....git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/....git'
This seems to be a problem with the jpeg-JS package and not parse-server itself.
I dont know if its related, but when I used "express": "~4.11.x"and "parse-server": "~2.2.12" as default in parse-server-example, I got the same error in the terminal, but then it was
npm ERR! fetch failed http://registry.npmjs.org/cookie-signature1.0.3.
I'm having the same issue with NPM in AWS. Might be related to:
http://status.npmjs.org/incidents/nl2mpgltpnvj
Closing as unrelated to parse-server