Node.js tips and tricks

From HPCWIKI
Revision as of 14:32, 30 October 2026 by Admin (talk | contribs)
Jump to navigation Jump to search

Overview

Node.js tips and tricks에 대한 기술 문서입니다.

Key Concepts

Concept Description Related
Node.js tips and tricks HPC/서버 환경에서 중요한 기술 개념 Linux, Server

Detailed Explanation

# Install npm-check-updates globally
$ npm i -g npm-check-updates
# Inside of nodejs project folder where package.json is located
$ ncu -u
Upgrading /opt/imp/home/prj/package.json
[====================] 39/39 100%
...
 async                           ^2.6.3  →    ^3.2.6
 cheerio                    ^1.0.0-rc.2  →    ^1.0.0
 cookie-parser                   ^1.4.4  →    ^1.4.7
....
# Run npm install to install new versions.
$ npm install

<syntaxhighlight lang="bash"> curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.bashrc

  1. List up node version

nvm list-remote

Best Practices

  • 최신 버전 사용 권장
  • 공식 문서 참고
  • 테스트 환경에서 먼저 검증

References

Related Pages

Knowledge Graph

Related

→ Linux → Server → Hardware → Network