Skip to content

Instantly share code, notes, and snippets.

@technicool
Created April 5, 2016 17:39
Show Gist options
  • Save technicool/7b94467be1f4e79cc53f52492cb9337c to your computer and use it in GitHub Desktop.
Save technicool/7b94467be1f4e79cc53f52492cb9337c to your computer and use it in GitHub Desktop.
NPM Issues on April 4'th

First, run a new isolated container:

docker run --rm -it ubuntu bash

Now, setup npm and try to install package:

apt-get update && apt-get install -y npm
npm install grunt

You might see some funky garbage in your terminal window. Sometimes, it will hang, so expect to kill your session out of band.

Any thoughts?

@othiym23
Copy link

othiym23 commented Apr 5, 2016

I'd suggest using https://github.com/mhart/alpine-node as your base image instead, if only because the version of npm bundled with Ubuntu LTS is old enough to be completely unsupported by the npm CLI team. For more details on what's causing these install failures, see npm/npm#12196 (comment).

@aredridel
Copy link

Sounds like you're running the ancient included-with-ubuntu npm 1.3, which is no longer supported.

Today we turned on gzip encoding for json responses. It however did not vary the cache correctly, so it used cached gzip data on requests that did not accept gzip, such as those issued by npm 1.3

The fix will be rolling out, but I strongly encourage you to use a current node and npm, perhaps from the deb.nodesource.com repo.

@technicool
Copy link
Author

Fancy! Guess we will be updating projects today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment