Last active
October 29, 2015 20:30
-
-
Save igara/1ec4e2658e8b6916a153 to your computer and use it in GitHub Desktop.
[メモ]node.jsでライブラリのバージョン管理する ref: http://qiita.com/igara/items/34b037c9bfb51108147a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install npm | |
npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.js:333 | |
throw err; | |
^ | |
Error: Cannot find module 'child-process-close' | |
at Function.Module._resolveFilename (module.js:331:15) | |
at Function.Module._load (module.js:273:25) | |
at Module.require (module.js:357:17) | |
at require (module.js:373:17) | |
at /usr/local/lib/node_modules/npm/lib/npm.js:15:1 | |
at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/npm.js:520:3) | |
at Module._compile (module.js:449:26) | |
at Object.Module._extensions..js (module.js:467:10) | |
at Module.load (module.js:349:32) | |
at Function.Module._load (module.js:305:12) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://npmjs.org/install.sh | |
sudo sh ./install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -L git.io/nodebrew | perl - setup | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$HOME/.nodebrew/current/bin:$PATH | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ source .bashrc | |
$ nodebrew install v4.2.1 | |
$ nodebrew use v4.2.1 | |
$ node -v | |
v4.2.1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev babel | |
npm install --save-dev angular | |
npm install --save-dev mocha | |
npm install --save-dev phantomjs | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev laravel-elixir | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev angular2 | |
npm install --save-dev mocha | |
npm install --save-dev phantomjs | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"devDependencies": { | |
"angular2": "^2.0.0-alpha.45", | |
"gulp": "^3.8.8", | |
"mocha": "^2.3.3", | |
"phantomjs": "^1.9.18" | |
}, | |
"dependencies": { | |
"laravel-elixir": "^3.0.0", | |
"bootstrap-sass": "^3.0.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment