https://github.com/mafintosh/node-gyp-install
npm install -g node-gyp-install
node-gyp-install
version Must match version exactly
>version Must be greater than version
>=version etc
<version
<=version
~version 1.2.x
^version 1.x.x
1.2.x 1.2.0, 1.2.1, etc., but not 1.3.0
http://... See 'URLs as Dependencies' below
* Matches any version
npm update npm -g # update npm
# install
curl https://npmjs.org/install.sh | sh
npm root # get the root folder where packages are installeds
npm login # login account
npm publish # push to registry
# update
npm version <update_type> # increase version, update_type: patch, minor, or major.
npm publish
# Error: ENOENT: no such file or directory, scandir
node node_modules/node-sass/scripts/install.js
npm rebuild node-sass
node node_modules/pngquant-bin/lib/install.js
node node_modules/optipng-bin/lib/install.js