컴퓨터/프로그래밍2015. 6. 24. 11:53

1. npm 폴더의 npmrc 파일을 백업한다.


   : %ProgramFiles%\nodejs\node_modules\npm 폴더에서 npmrc 파일을 백업해 둔다. (임의의 폴더로 복사)


2. 명령창(cmd.exe)을 열고 아래의 명령을 실행한다.


cd %ProgramFiles%\nodejs
npm install npm@latest


3. 백업해둔 npmrc 파일을 원래 폴더로 복원한다.



참고> https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows


Posted by jungtae17