역시 세상에서 제일 어려운 건 설치인 것 같습니다....
하루종일 설치 에러와 싸워서 얻어낸 정보들 공유합니다.
no such file or directory, open...

순조롭게 node.js까지 다운로드를 하고 npm install을 하려 하니 오잉? 에러가 뜹니다.
ENOENT: no such file or directory, open...
이 부분을 구글링 해보니 package.json이 없기 때문이라고 합니다.
npm 사용 전 초기 설정이 필요하여 다시 아래의 명령을 하면
npm init

어쩌구 저쩌구 쭈욱 뜨는데 모두 enter를 눌러주고
Is this OK?( yes ) 까지 Enter를 친 후 아래의 명령을 하면 npm 설치 완료!
npm install finalhandler
The package-lock.json file was created with an old version of npm
만들어진 package-lock.json 파일이 옛날 버전의 npm으로 만들어진 경우 뜨는 에러입니다.

그러면 지금 우리의 npm version을 downgrade하면 됩니다.
npm install -g npm@version
version 부분에는 3.0.0 과 같이 version 정보를 넣어주면 됩니다.
그렇지만 어떤 버전을 다운받아야 할지 잘 모르겠고, 버전을 관리하고 싶다면
nvm을 다운받습니다.
nvm-setup.zip 을 다운받고 설치합니다.
다운로드: https://github.com/coreybutler/nvm-windows/releases
Releases · coreybutler/nvm-windows
A node.js version management utility for Windows. Ironically written in Go. - coreybutler/nvm-windows
github.com
nvm이란?
노드 버전 관리자(Node Version Manager): Node.js의 도구
nvm 사용법은 여기를 참조해 주세요.
'Just Do It > Bootstrap' 카테고리의 다른 글
Bootstrap - free theme Atlantis 설치 (0) | 2022.02.16 |
---|---|
Bootstrap chart - 라이브러리 소개 (0) | 2022.02.04 |
Bootstrap - free theme <CORONA> Tables (0) | 2022.02.03 |
Bootstrap Icon (0) | 2022.02.02 |
Bootstrap - free theme <CORONA> 설치 (0) | 2022.01.28 |