티스토리 뷰

기타

Node.js & npm 업데이트

silver18 2020. 6. 5. 00:23

Windows는 node 페이지에서 새 버전 다운받으면 됨.

 

Node.js

https://nodejs.org/ko/ 에서 LTS 다운로드 후 설치

 

Node.js

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

 

npm install -g n 시 오류 발생 관련

더보기
>node -v
>npm cache clean -f
npm WARN using --force I sure hope you know what you are doing.
>npm install -g n
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@6.5.1: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS:    !win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\사용자\AppData\Roaming\npm-cache\_logs\2020-06-04T14_35_42_234Z-debug.log
>n lts

 npm install -g n 에서 오류가 발생하는데 n 플러그인을 windows에서 지원하지 않는다고 한다. 

https://github.com/npm/npm/issues/12967

 

Cannot update node with "npm install -g n" · Issue #12967 · npm/npm

Today I tried to update my node version (5.3.0) to the latest (6.2.1) using npm install -g n. But unfortunately it did not work on my machine (Windows 10 Home): Report npm ERR! Windows_NT 10.0.1058...

github.com

npm

npm -v
npm i -g npm

'기타' 카테고리의 다른 글

git repository 합치기  (0) 2021.03.23
git commit message 수정  (0) 2020.06.16
처음 git 연동  (0) 2020.06.02
git repository remote 변경  (0) 2020.06.01
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2026/02   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
글 보관함