node - npm 설치 과정 및 문제
1408 단어 자바 학습 의 길
다음은 생각 나 는 설치 및 예시 테스트 과정 설치 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 을 다시 해 야 합 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
java: 대상 지향 (구성원 변수 에 값 을 부여 하 는 두 가지 방법 과 차이)텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.