Having problems upgrading to npm v 2.+
G'day!
i'm doing this in my install script ...
npm -g install npm@2
C:\Users\appveyor\AppData\Roaming\npm\npm ->
C:\Users\appveyor\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
npm@2.7.4
C:\Users\appveyor\AppData\Roaming\npm\node_modules\npm
npm --version
1.4.28
when i swear it was returning v 2.7.something .. earlier today.
Is there any trick for me to use the latest version of NPM in my script section?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 01 Apr, 2015 04:36 PM
It should be:
2 Posted by Pure Krome on 02 Apr, 2015 01:05 AM
Ah drats! i had that
set PATH..code in, this morning .. but deleted that line when I was cleaning up the script.Added it back - all good.
I guess this is the best way to make sure we're using the latest version of NPM?
Support Staff 3 Posted by Feodor Fitsner on 02 Apr, 2015 01:06 AM
I think so.
4 Posted by Pure Krome on 02 Apr, 2015 03:51 AM
Rgr, Ta!
Pure Krome closed this discussion on 02 Apr, 2015 03:51 AM.