독까의 이야기

업체에서 node.js 모듈 업데이트를 요청하였다. 


CMD 실행 후, npm install 을 입력했는데 잘 설치가 되는듯 싶더니 오류가 빡! 하고 나와버렸다. 심지어 컬러로 나온다. 




C:\Program Files\nodejs\node_modules\npm>npm install

npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)

npm WARN deprecated ignore@2.2.19: several bugs fixed in v3.2.1

npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump

npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer 

npm WARN notice [SECURITY] hoek has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=hoek&version=2.16.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.

npm WARN notice [SECURITY] tunnel-agent has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=tunnel-

agent&version=0.4.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.


> npm@5.6.0 prepare C:\Program Files\nodejs\node_modules\npm

> node bin/npm-cli.js --no-timing prune --prefix=. --no-global && rimraf test/*/

*/node_modules && make -j4 doc


npm notice created a lockfile as package-lock.json. You should commit this file.


up to date in 6.985s

'rimraf'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! npm@5.6.0 prepare: `node bin/npm-cli.js --no-timing prune --prefix=. --no-global && rimraf test/*/*/node_modules && make -j4 doc`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the npm@5.6.0 prepare script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-09-05T05_56_35_361Z-debug.log 


구글링을 또 해보자~

검색어 : 'rimraf'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.

결과 : https://github.com/gdi2290/angular-starter/issues/1997

CMD 에서 npm install rimraf -g 입력을 해본다. 


설치가 잘 된걸로 보인다. 

다시 npm install 입력한다. 


이상 없이 완료가 된 걸로 보인다. 

npm 관련해서 검색을 해보니깐, 뒤의 옵션에 -g 를 주면 어느 경로에서든 설치를 진행한다고 한다. 그러니깐 굳이 npm 설치 경로에서 실행 안해도 된다. 

자세한건 알아서 검색해보자.