NodeJS - Add post install npm update -g

NodeJS is no longer bundling an up to date `NPM` package, currently shipping with v1.4.28, now post install running `npm update -g` will update to NPM v2.1.10 at time of writing
This commit is contained in:
Stephen Edgar 2014-11-28 18:07:05 +11:00
parent 173f7031f7
commit ac270aaa29

View File

@ -15,6 +15,7 @@
"env_add_path": "nodejs", "env_add_path": "nodejs",
"post_install": " "post_install": "
# Remove npmrc that makes global modules get installed in AppData\\Roaming\\npm # Remove npmrc that makes global modules get installed in AppData\\Roaming\\npm
rm $dir\\nodejs\\node_modules\\npm\\npmrc", rm $dir\\nodejs\\node_modules\\npm\\npmrc
npm update -g",
"checkver": "<p class=\"version\">Current Version: v([0-9\\.]+)</p>" "checkver": "<p class=\"version\">Current Version: v([0-9\\.]+)</p>"
} }