npm install 오류 - "node - ass" 를 다운로드 할 수 없습니다

1351 단어 전단 개발
node scripts/install.js
Cannot download "https://github.com/sass/node-sass/releases/download/v3.8.0/win32-x64-48_binding.node"
----------------
gyp info it worked if it ends with ok
gyp verb cli [ 'D:\\azml\
odejs\
ode.exe', gyp verb cli 'E:\\test\
ode_modules\
ode-gyp\\bin\
ode-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' ] gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not found: python2 ---------------------

원인 찾기 --- - 주로 windows 플랫폼 에 컴 파일 환경 이 부족 합 니 다.
1.npm install -g node-gyp 
2.npm install --global --production windows-build-tools 
오류 보고: 관리 권한 이 없 는 빌 드 도 구 를 설치 할 수 없습니다. 수정 하려 면 PowerShell 을 마우스 오른쪽 버튼 으로 클릭 하고 "관리자 로" 를 실행 하 십시오.
PowerShell 에 들 어가 서 위 코드 를 관리자 로 실행 합 니 다.
3.npm uninstall node-sass
4.npm install node-sass
npm install

좋은 웹페이지 즐겨찾기