본문 바로가기

node.js

(3)
[npm] 설정된 npm registry 확인하기 / 기본 npm registry 변경하기 설정된 npm registry 확인하기 npm config get registry 기본 npm registry 변경하기 npm config set registry https://xxx.xxx
[NPM] 다른 npm registry에서 npm 모듈 다운로드하기 저는 회사에서 npm 로컬 저장소를 이용하여 패키지를 업로드하고, 다운로드 받아 사용하고 있습니다. 이를 위해 npm default registry를 설정해두었습니다. npm config set registry https://registry.xxxxx.com/xxxxx/ 이 경우 오픈소스 패키지를 npm 명령어로 설치하려 할 경우, 위에서 설정한 default registry에 패키지가 존재하지 않아 404 에러가 발생됩니다. npm install --save-dev electron npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.xxxxx.com/xxxxx/electron - not_found npm ERR! 404 npm ERR! 4..
node_modules/node-sass: Command failed. 오류 해결 하기 안녕하세요. 오늘 새로운 프로젝트를 세팅 중에 오류가 발생하여 해결하였던 내용을 공유해보려고 합니다😊 문제 발생 기존에 있던 프로젝트를 가져와서 사용을 하게 되었는데, yarn install 명령어 실행 시 오류가 발생하였습니다. yarn install /Users/user/Documents/workspace/.../node_modules/node-sass: Command failed. ... 1 error generated. make: *** [Release/obj.target/binding/src/binding.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at Chi..