Wednesday, May 18, 2016

NPM으로 Node.js 업그레이드 하기

1. check current version

$>node -v

2. delete npm cache

$>sudo npm cache clean -f

3. install ‘n’

$>sudo npm install -g n

4. upgrade to the specific version,

$>sudo n {VERSION}

or upgrade to the latest stable version

 $>sudo n stable

5. check version

$>node -v

note)
At 5, if the version is not your favorite, try to reboot...

No comments:

Post a Comment