1.nvm 설치
nvm - 노드 버전 메니져 설치 (https://github.com/nvm-sh/nvm#install-script)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
vi .bash_profile
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
source .bash_profile
2. node 설치 (npm 자동 설치됨)
npm - 노드 패키지 매니져
1) 설치
$> nvm install v12.16.1
Downloading and installing node v12.16.1...
Downloading https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v12.16.1 (npm v6.13.4)
Creating default alias: default -> v12.16.1
$> nvm use v12.16.1
Now using node v12.16.1 (npm v6.13.4)
2) vi .bash_profile
어떤걸 반영해야되는 몰라서 스킵함. ㅠ
※ npm 설치가 안된다면 설치방법 참조하기 :)
2020/05/29 - [web 일반] - npm 설치하기
3. npx 설치
$> npm install npx
npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! request to https://registry.npmjs.org/npx failed, reason: write EPROTO 140132523050880:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /home/moonppower/.npm/_logs/2021-01-06T14_04_57_019Z-debug.log
실패했지만 버전은 확인됨. 일단 스킵 ㅠ
$> npx -v
6.13.4
4. 버전 확인
> npx -v
6.13.4
> node -v
v12.16.1
> npm -v
6.13.4
5. VSCode 코드 설치
'web 일반 > React' 카테고리의 다른 글
github page 만들기, using gh-pages (0) | 2021.03.19 |
---|---|
state of JS 의 설문조사 살펴보기 (Front End Frameworks 설문조사) (0) | 2021.01.08 |
개발자를 위한 웹 기술 > JavaScript (0) | 2021.01.06 |
React 1) 개발환경 (0) | 2020.05.28 |
댓글