#1 By: VoxPelli, January 3rd, 2014 10:22
I just tried pushing up a site with a dependency on a NPM-package published within the last 4 hours and my push fails due to Heroku getting a 404 when trying to fetch it from NPM. I tried with the previous version, which is 18-19 hours old and that worked. I also tried adding another newly published package as a dependency and Heroku was unable to fetch that one as well.
Both packages I tried are accessible for me on my development machine here in Sweden, but when deployed to my european Heroku instance it fails when trying to fetch the tarball, like: https://registry.npmjs.org/backbone-extend-standalone/-/backbone-extend-standalone-0.1.2.tgz
Anyone knows what might be causing this issue? Is it an issue with Heroku or has NPM moved to some new CDN-infrastructure that makes it possible for a package to be available to some places but not others?
#2 By: andreas304, January 9th, 2014 18:23
I have the same issue here. Are you still encountering this problem, if yes how did you fix it?
The error looks like the following:
npm ERR! fetch failed https://registry.npmjs.org/connect-modrewrite/-/connect-modrewrite-0.5.10.tgz
npm http GET https://registry.npmjs.org/grunt-karma/-/grunt-karma-0.7.1.tgz
npm http GET https://registry.npmjs.org/grunt-open/-/grunt-open-0.2.2.tgz
npm ERR! Error: 404 Not Found
npm ERR! at WriteStream.<anonymous> (/tmp/node-npm-0TmY/lib/utils/fetch.js:57:12)
npm ERR! at WriteStream.EventEmitter.emit (events.js:117:20)
npm ERR! at fs.js:1596:14
npm ERR! at /tmp/node-npm-0TmY/node_modules/graceful-fs/graceful-fs.js:103:5
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <email@example.com>
#3 By: VoxPelli, January 10th, 2014 04:03
Haven't tried again so not sure if its working for me now. I did a workaround though – I set the git-repository as the dependency rather than specifying the NPM version – not a pretty fix, but it at leasts makes the app deployable.