2017-09-17 1 views
0

npm이 사용하는 노드 버전을 어떻게 변경할 수 있습니까?npm이 사용하는 노드 버전을 변경하는 방법

내가 노드 6.11.2

$ node -v 
v6.11.2 

를 설치했지만 나는 NPM은 노드 v4.2.6을 감지하는 사용할 때

$ npm info 
npm ERR! Linux 4.4.0-93-generic 
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "info" 
npm ERR! node v4.2.6 
npm ERR! npm v3.5.2 
npm ERR! code E404 

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/html5-webpack-template 
npm ERR! 404 
npm ERR! 404 'html5-webpack-template' is not in the npm registry. 
npm ERR! 404 You should bug the author to publish it (or use the name yourself!) 
npm ERR! 404 
npm ERR! 404 Note that you can also install from a 
npm ERR! 404 tarball, folder, http url, or git url. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/workspace/standards-playground/src/main/webapp/npm-debug.log 
+0

어떻게 설치 했습니까? –

+0

@Dave Newton 우선 우분투와 함께 제공되는 npm의 기본 설치를 설치합니다. 그 후 수동으로 노드의 마지막 버전을 설치하고 update-alternatives에 추가했습니다. – Joe

답변

1

먼저 모든 버전

nvm ls 
을 설치 나열하려면 다음 명령을 사용하여

그 다음에 아래 명령을 사용하십시오.

nvm use `<version>` 

Node Version Manager (nvm)의 지침에 따라 설치할 수 있습니다.

관련 문제