흔자
반응형
[Node.js] npm install 옵션 --save와 --save-dev의 차이점
Develop/Node.js 2023. 2. 8. 10:22

npm install --save npm install --save npm install --save는 node_modules에 패키지를 설치하고 package.json의 dependencies 항목에 있는 플러그인 정보가 저장된다. --production 옵션으로 실행 시 반드시 해당 플러그인이 포함된다. # package.json dependencies "dependencies": { "@web3-react/abstract-connector": "^6.0.7", "@web3-react/types": "^6.0.7", "async": "^2.6.2", "bignumber.js": "latest", "body-parser": "latest", "bsc": "^2.0.0", "chalk": "^2.4.2"..

[Linux] npm install시 발생하는 exited with error code: 128 오류
Develop/Linux 2022. 6. 22. 09:49

npm install시 발생하는 exited with error code: 128 오류 오류 npm install 명령어 오류 npm ERR! Error while executing: npm ERR! /bin/git ls-remote -h -t ssh://git@github.com/barrysteyn/node-scrypt.git npm ERR! npm ERR! fatal: failed to stat '.': ?? ?? npm ERR! npm ERR! exited with error code: 128 npm ERR! A complete log of this run can be found in: 해결방법 npm install -g npm -g (global) 어디서든 사용할 수 있게 해주는 옵션을 추가하고 ..

[Linux] npm WARN using --force Recommended protections disabled. 오류
Develop/Linux 2022. 6. 21. 15:00

오류 npm cache clean --force 명령어 오류 npm WARN using --force Recommended protections disabled. 해결방법 npm 버전을 변경한 후에 command 재실행 6.14.11을 원하는 버전으로 변경 후 설치 npm install -g npm@6.14.11

반응형