node - npm 설치 과정 및 문제

1408 단어 자바 학습 의 길
node - npm 설치 과정
다음은 생각 나 는 설치 및 예시 테스트 과정 설치 node - npm 상세 과정 입 니 다.
이 문제 에 부 딪 히 면 npm init -y
npm install dependencies
npm WARN saveError ENOENT: no such file or directory, open 'C:\Windows\system32\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\system32\package.json'

이 수요 에 부 딪 히 면 npm install dependencies
Failed to install dependencies. Please run 'npm install' manually!


우선 미 러 를 고 쳐 야 합 니 다. 벽 문제 로 설치 에 성공 하지 못 한 것 이 많 습 니 다.
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global

  
npm config get registry        

node - ass 설치 에 대해 서 는 다양한 미 러, Liux, windows 및 여러 가지 방법 을 변경 합 니 다.
그러나 다른 사람의 프로젝트 를 가 져 올 때 npm install 은 여러 가지 문제 가 발생 할 수 있 습 니 다. 먼저 chromedriver 가 설치 되 지 않 고 미 러 설치 로 해결 할 수 있 습 니 다 npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver. 그 다음 에 note - ass 설치 가 성공 하지 못 하 는 문제 가 발생 할 수도 있 고 미 러 npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ 를 통 해 해결 할 수 있 습 니 다. 그 후에 npm run dev 가 발생 할 수 있 습 니 다. 그러나 예전 에 겪 었 던 여러 가지 문제 로 인해npm install 이 여러 번 있 었 기 때문에 매번 프로젝트 폴 더 에서 node - modules 폴 더 를 삭제 하고 npm install 을 다시 해 야 합 니 다.

좋은 웹페이지 즐겨찾기