Skip to content

Instantly share code, notes, and snippets.

@calzoneman
Last active July 14, 2016 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calzoneman/73929b0215cc5332367b9283fdf18aec to your computer and use it in GitHub Desktop.
Save calzoneman/73929b0215cc5332367b9283fdf18aec to your computer and use it in GitHub Desktop.
#!/bin/bash
npm install npm@3
deplist=`node -e 'p=require("./package");d=[];for(var n in p.dependencies)d.push(n+"@"+p.dependencies[n]);for(var n in p.devDependencies)d.push(n+"@"+p.devDependencies[n]);console.log(d.join(" "))'`
for dep in $deplist; do
echo "installing $dep"
./node_modules/npm/bin/npm-cli.js install $dep
done
./node_modules/npm/bin/npm-cli.js dedupe
./node_modules/npm/bin/npm-cli.js run postinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment