Friday, August 28, 2015

Updating NPM on Windows

Apparently NPM updates more frequently than NodeJS does. I'm trying to keep edge versions since there's quite a bit of things happening with the new cross-platform build agent, npm and the MAX_PATH issue on Windows. Apparently - NPM likes to create very deep folder structures - and windows doesn't like that too much.


I've encountered problems with this on my CI/CD server and that's why I'm trying to keep the agent + NPM as up to date as possible. I thought running `npm update -g npm` would solve it - but it doesn't - see:


Here's the solution:


Credits: http://stackoverflow.com/a/26908900/896697 - I used option 3 btw.

No comments:

Post a Comment