Skip to content

Instantly share code, notes, and snippets.

@igara
Last active October 29, 2015 20:30
Show Gist options
  • Save igara/1ec4e2658e8b6916a153 to your computer and use it in GitHub Desktop.
Save igara/1ec4e2658e8b6916a153 to your computer and use it in GitHub Desktop.
[メモ]node.jsでライブラリのバージョン管理する ref: http://qiita.com/igara/items/34b037c9bfb51108147a
brew install npm
npm install
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)
wget http://npmjs.org/install.sh
sudo sh ./install.sh
$ curl -L git.io/nodebrew | perl - setup
export PATH=$HOME/.nodebrew/current/bin:$PATH
$ source .bashrc
$ nodebrew install v4.2.1
$ nodebrew use v4.2.1
$ node -v
v4.2.1
npm install --save-dev babel
npm install --save-dev angular
npm install --save-dev mocha
npm install --save-dev phantomjs
npm install
npm install --save-dev laravel-elixir
npm install --save-dev angular2
npm install --save-dev mocha
npm install --save-dev phantomjs
{
"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