작성
·
887
0
node.js 는 10.16.0
npm 6.9.0 버전입니다.
npm install 했을 때, 이런 에러 났는데 혹시 해결하신분 있으실까요?ㅠㅠ
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
npm ERR!
npm ERR! fatal: remote error:
npm ERR! The unauthenticated git protocol on port 9418 is no longer supported.
npm ERR! Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\[username]\AppData\Roaming\npm-cache\_logs\2022-04-12T06_55_37_435Z-debug.log
답변 1
0
https://exerror.com/solved-the-unauthenticated-git-protocol-on-port-9418-is-no-longer-supported/ 에 따르면
2021년 9월에 git: 커맨드는 github:으로 바꾸면된다고합니다
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
->
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t github://github.com/frozeman/WebSocket-Node.git
package-lock.json의 forzeman 부분을 바꿔줘야하는데 package-lock.json은 git: -> github:으로 바꾸고 npm install을 실행해도 같은 에러가 뜨더라구요 ..
하지만 npm install은 node_modules라는 폴더를 다운받기위해 쓰는 명령어 인거같습니다
다행히도 강의자분께서 깃헙에 node_moduls 파일까지 올려주셔서 저희는
"npm run dev" 해보시고, 인터넷 익스플로러에
127.0.0.1/8080 가보시면
요렇게 됩니다
아직 뒤에까지 진행하지 않아서 저도 잘 모르지만, 굳이 npm install 하실필요는 없는거같슴다!
webpack5 사용하시면 caver-js와 호환성 문제가 생겨서 npm install시 오류 나실껍니다.
지금 그래서 webpack5에 맞춰서 caver-js 최신버전 사용하려니 강의에서 제공되는 코드가 정상 작동하는게 많이 없습니다.
참로고 truffle 쪽도 최신 버전 설치하면 강의랑 설정이 많이 다릅니다.