snaag / TIL

https://github.com/snaag/todo3/issues
3 stars 0 forks source link

22-03-12-SAT #3

Open snaag opened 2 years ago

snaag commented 2 years ago
snaag commented 2 years ago

NPM Install troubleshooting

npm ERR! notarget 해결 (캐시)

npm cache clear --force


## ERR! Fix the upstream dependency conflict, or retry (버전 충돌)
* [angularjs - Unable to resolve dependency tree error when installing npm packages - Stack Overflow](https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages)
* `npm install --force`  혹은 `npm install --legacy-peer-deps`  하면 됨

##  ERR! code ERR_SOCKET_TIMEOUT (타임아웃)
* [angular - npm ERR! code ERR_SOCKET_TIMEOUT on creating new project using ng new appname - Stack Overflow](https://stackoverflow.com/questions/67657599/npm-err-code-err-socket-timeout-on-creating-new-project-using-ng-new-appname)
* 타임아웃을 크게 설정해준다
```shell
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000

npm config ls -l # 설정값 보기