文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== Node.js - サーバーサイド JavaScript 環境 ====== <WRAP prewrap 100% #logo> {{javascript:node.js_logo.svg?300|Node.js Logo}} </WRAP> 日本ユーザグループ: [[http://nodejs.jp/|Japan Node.js Association]]\\ 本家: [[http://nodejs.org/|Node.js]]\\ **Node.js** はV8 JavaScript エンジン上に構築された JavaScript 実行環境の 1 つである。イベント化された入出力を扱うサーバーサイド JavaScript 環境であり、Web サーバなどのスケーラブルなネットワークプログラムの記述を意図している。ライアン・ダールによって 2009 年に作成され、ダールを雇用している Joyent の支援により成長している。\\ [[wpjp>Node.js|Node.js - Wikipedia]] より\\ ===== Linux - anyenv (nodenv) 編 ===== 詳しくは [[linux:anyenv#nodenv|anyenv - rbenv スタイルのオールインワン環境マネージャー]] を参照。\\ \\ **anyenv-update** プラグインで **nodenv** と **node-build** をコマンド一発で最新化する😉\\ <WRAP color_term> <WRAP color_command><html><pre> $ anyenv update nodenv </pre></html></WRAP> <WRAP color_result><html><pre> <b class="BOLD HIG">Updating 'nodenv'... Updating 'nodenv/node-build'...</b> <b class="BOLD HIG">|</b> From https://github.com/nodenv/node-build <b class="BOLD HIG">|</b> * [new branch] latest-scraped-definitions -> origin/latest-scraped-definitions <b class="BOLD HIG">Updating 'nodenv/nodenv-vars'... Updating 'anyenv manifest directory'...</b> </pre></html></WRAP> </WRAP> node のインストール...🤔\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> nodenv install 18.14.0 </pre></html></WRAP> <WRAP color_result><html><pre> Downloading node-v18.14.0-linux-x64.tar.gz... -> https://nodejs.org/dist/v18.14.0/node-v18.14.0-linux-x64.tar.gz Installing node-v18.14.0-linux-x64... Installed node-v18.14.0-linux-x64 to /home/tomoyan/.anyenv/envs/nodenv/versions/18.14.0 </pre></html></WRAP> <WRAP color_command><html><pre> <b class=GRN>$</b> nodenv rehash <b class=GRN>$</b> nodenv global 18.14.0 <b class=GRN>$</b> nodenv versions </pre></html></WRAP> <WRAP color_result><html><pre> * 18.14.0 (set by /home/tomoyan/.anyenv/envs/nodenv/version) </pre></html></WRAP> <WRAP color_command><html><pre> <b class=GRN>$</b> node -v </pre></html></WRAP> <WRAP color_result><html><pre> v18.14.0 </pre></html></WRAP> <WRAP color_command><html><pre> <b class=GRN>$</b> npm -v </pre></html></WRAP> <WRAP color_result><html><pre> 9.3.1 </pre></html></WRAP> <WRAP color_command><html><pre> <b class=GRN>$</b> npx -v </pre></html></WRAP> <WRAP color_result><html><pre> 9.3.1 </pre></html></WRAP> <WRAP color_command><html><pre> <b class=GRN>$</b> npm -g list </pre></html></WRAP> <WRAP color_result><html><pre> /home/tomoyan/.anyenv/envs/nodenv/versions/18.14.0/lib ├── corepack@0.15.3 └── npm@9.3.1 </pre></html></WRAP> </WRAP> ===== Linux - nvm 編 ===== 本家: [[git>nvm-sh/nvm|nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions]]\\ Node Version Manager(nvm) のインストールを行う。\\ ===== Linux - nodebrew 編 ===== 本家: [[git>hokaccha/nodebrew|hokaccha/nodebrew: Node.js version manager]]\\ ==== インストール ==== <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>curl</b> -kL git.io/nodebrew | perl - setup </pre></html></WRAP> <WRAP color_result><html><pre> % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0 100 24634 100 24634 0 0 5131 0 0:00:04 0:00:04 --:--:-- 30041 Fetching nodebrew... Installed nodebrew in $HOME/.nodebrew ======================================== Export a path to nodebrew: export PATH=$HOME/.nodebrew/current/bin:$PATH ======================================== </pre></html></WRAP> </WRAP> 指示にしたがってパスを設定する。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>vi</b> ~/.bashrc </pre></html></WRAP> <WRAP color_result><html><pre> # User specific aliases and functions export PATH=$HOME/.nodebrew/current/bin:$PATH </pre></html></WRAP> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>source</b> ~/.bashrc </pre></html></WRAP> </WRAP> ==== node.js をバイナリインストールする場合 ==== インストール可能なバージョンを調べる。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nodebrew</b> ls-remote </pre></html></WRAP> <WRAP color_result><html><pre> 〜省略〜 v12.7.0 v12.8.0 v12.8.1 v12.9.0 v12.9.1 v12.10.0 〜省略〜 </pre></html></WRAP> </WRAP> バージョンを指定してバイナリインストールする。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nodebrew</b> install-binary v12.10.0 </pre></html></WRAP> <WRAP color_result><html><pre> Fetching: https://nodejs.org/dist/v12.10.0/node-v12.10.0-linux-x64.tar.gz ######################################################################### 100.0% Installed successfully </pre></html></WRAP> </WRAP> ==== node.js をビルドする場合 ==== ビルドに必要なパッケージをインストールする。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>sudo</b> dnf install openssl-devel gcc-c++ </pre></html></WRAP> </WRAP> nodebrew を使って node.js の最新バージョンをビルドしてインストールする場合。 <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nodebrew</b> install latest </pre></html></WRAP> <WRAP color_result><html><pre> fetch: http://nodejs.org/dist/v5.4.1/node-v5.4.1.tar.gz ######################################################################## 100.0% 〜省略〜 installing /home/tomoyan/.nodebrew/node/v5.4.1/bin/node installing /home/tomoyan/.nodebrew/node/v5.4.1/share/systemtap/tapset/node.stp installing /home/tomoyan/.nodebrew/node/v5.4.1/share/doc/node/gdbinit 〜省略〜 </pre></html></WRAP> </WRAP> ==== nodebrew の使い方 ==== インストールされているバージョンを確認する。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nodebrew</b> ls </pre></html></WRAP> <WRAP color_result><html><pre> v12.10.0 current: none </pre></html></WRAP> </WRAP> 利用するバージョンを指定します。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nodebrew</b> use v12.10.0 </pre></html></WRAP> <WRAP color_result><html><pre> use v12.10.0 </pre></html></WRAP> </WRAP> アンインストールする場合。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nodebrew</b> uninstall v7.7.2 </pre></html></WRAP> <WRAP color_result><html><pre> v7.7.2 uninstalled </pre></html></WRAP> </WRAP> ==== node.js の動作確認 ==== 動作確認を行います。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nodebrew</b> use v12.10.0 </pre></html></WRAP> <WRAP color_result><html><pre> use v12.10.0 </pre></html></WRAP> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>node</b> -v </pre></html></WRAP> <WRAP color_result><html><pre> v12.10.0 </pre></html></WRAP> </WRAP> ===== Windows - nvm-windows 編 ===== ソースコード: [[https://github.com/coreybutler/nvm-windows|nvm-windows]]\\ ==== インストール ==== [[windows:scoop|Scoop]] によるインストール。\\ **nvm** (Node Version Manager) をインストールする。\\ ※ここでインストールされる **nvm** は [[https://github.com/coreybutler/nvm-windows|nvm-windows]] である。Linux の [[https://github.com/nvm-sh/nvm|nvm]] とはオプションなどが異なる。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>scoop</b> install nvm </pre></html></WRAP> <WRAP color_result><html><pre> Installing 'nvm' (1.1.9) [64bit] nvm-noinstall.zip (3.6 MB) [==================================================================================] 100% Checking hash of <b class=CYN>nvm-noinstall.zip</b> ... <b class=GRN>ok.</b> Extracting <b class=CYN>nvm-noinstall.zip</b> ... <b class=GRN>done.</b> Running pre_install script... Linking ~\scoop\apps\nvm\current => ~\scoop\apps\nvm\1.1.9 Creating shim for 'nvm'. Persisting nodejs Persisting elevate.cmd Persisting elevate.vbs Persisting settings.txt <b class=GRN>'nvm' (1.1.9) was installed successfully!</b> Notes ----- You'll need to restart powershell/cmd to have it reload Environment Variables so nvm will work correctly </pre></html></WRAP> </WRAP> ==== nvm の動作確認 ==== <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nvm</b> version </pre></html></WRAP> <WRAP color_result><html><pre> 1.1.9 </pre></html></WRAP> </WRAP> ※Windows の **nvm** では、バージョン確認は **version** オプションである。\\ <WRAP WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nvm</b> </pre></html></WRAP> <WRAP color_result><html><pre> Running version 1.1.9. Usage: nvm arch : Show if node is running in 32 or 64 bit mode. nvm current : Display active version. nvm install <version> [arch] : The version can be a specific version, "latest" for the latest current version, or "lts" for the most recent LTS version. Optionally specify whether to install the 32 or 64 bit version (defaults to system arch). Set [arch] to "all" to install 32 AND 64 bit versions. Add --insecure to the end of this command to bypass SSL validation of the remote download server. nvm list [available] : List the node.js installations. Type "available" at the end to see what can be installed. Aliased as ls. nvm on : Enable node.js version management. nvm off : Disable node.js version management. nvm proxy [url] : Set a proxy to use for downloads. Leave [url] blank to see the current proxy. Set [url] to "none" to remove the proxy. nvm node_mirror [url] : Set the node mirror. Defaults to https://nodejs.org/dist/. Leave [url] blank to use default url. nvm npm_mirror [url] : Set the npm mirror. Defaults to https://github.com/npm/cli/archive/. Leave [url] blank to default url. nvm uninstall <version> : The version must be a specific version. nvm use [version] [arch] : Switch to use the specified version. Optionally use "latest", "lts", or "newest". "newest" is the latest installed version. Optionally specify 32/64bit architecture. nvm use <arch> will continue using the selected version, but switch to 32/64 bit mode. nvm root [path] : Set the directory where nvm should store different versions of node.js. If <path> is not set, the current root will be displayed. nvm version : Displays the current running version of nvm for Windows. Aliased as v. </pre></html></WRAP> </WRAP> ==== nvm でインストール可能な Node.js のリストを表示 ==== <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nvm</b> list available </pre></html></WRAP> <WRAP color_result><html><pre> | CURRENT | LTS | OLD STABLE | OLD UNSTABLE | |--------------|--------------|--------------|--------------| | 18.6.0 | 16.16.0 | 0.12.18 | 0.11.16 | | 18.5.0 | 16.15.1 | 0.12.17 | 0.11.15 | | 18.4.0 | 16.15.0 | 0.12.16 | 0.11.14 | | 18.3.0 | 16.14.2 | 0.12.15 | 0.11.13 | | 18.2.0 | 16.14.1 | 0.12.14 | 0.11.12 | | 18.1.0 | 16.14.0 | 0.12.13 | 0.11.11 | | 18.0.0 | 16.13.2 | 0.12.12 | 0.11.10 | | 17.9.1 | 16.13.1 | 0.12.11 | 0.11.9 | | 17.9.0 | 16.13.0 | 0.12.10 | 0.11.8 | | 17.8.0 | 14.20.0 | 0.12.9 | 0.11.7 | | 17.7.2 | 14.19.3 | 0.12.8 | 0.11.6 | | 17.7.1 | 14.19.2 | 0.12.7 | 0.11.5 | | 17.7.0 | 14.19.1 | 0.12.6 | 0.11.4 | | 17.6.0 | 14.19.0 | 0.12.5 | 0.11.3 | | 17.5.0 | 14.18.3 | 0.12.4 | 0.11.2 | | 17.4.0 | 14.18.2 | 0.12.3 | 0.11.1 | | 17.3.1 | 14.18.1 | 0.12.2 | 0.11.0 | | 17.3.0 | 14.18.0 | 0.12.1 | 0.9.12 | | 17.2.0 | 14.17.6 | 0.12.0 | 0.9.11 | | 17.1.0 | 14.17.5 | 0.10.48 | 0.9.10 | This is a partial list. For a complete list, visit https://nodejs.org/en/download/releases </pre></html></WRAP> </WRAP> ==== nvm で Node.js の 最新バージョン(LTS) をインストール ==== **nvm install <version> [arch]** arch=**32** or **64** or **all**\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nvm</b> install 18.18.0 64 </pre></html></WRAP> <WRAP color_result><html><pre> Downloading node.js version 18.18.0 (64-bit)... Extracting node and npm... Complete npm v9.8.1 installed successfully. Installation complete. If you want to use this version, type nvm use 18.18.0 </pre></html></WRAP> </WRAP> ==== Node.js のバージョン切り替え ==== <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nvm</b> use 18.18.0 64 </pre></html></WRAP> <WRAP color_result><html><pre> Now using node v18.18.0 (64-bit) </pre></html></WRAP> </WRAP> ==== Node.js のバージョン確認 ==== <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>node</b> <b class=HIK>--version</b> </pre></html></WRAP> <WRAP color_result><html><pre> v18.18.0 </pre></html></WRAP> </WRAP> ===== トラブルシューティング ===== ==== 1 high severity vulnerability (重大度の高い脆弱性 1 件) が発生する😨 ==== 特に理由がない場合は Node.js の[[https://nodejs.org/ja/|最新の LTS]] を使うべきです🤔\\ 以下は古い 16.17.0 LTS を使っていて発生しました😅\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>npm</b> install <b class=HIK>-g</b> firebase-tools </pre></html></WRAP> <WRAP color_result><html><pre> <b class="WHI BBLK">npm</b> <b class="BLK BYEL">WARN</b> <b class=MAG>deprecated</b> har-validator@5.1.3: this library is no longer supported <b class="WHI BBLK">npm</b> <b class="BLK BYEL">WARN</b> <b class=MAG>deprecated</b> debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) <b class="WHI BBLK">npm</b> <b class="BLK BYEL">WARN</b> <b class=MAG>deprecated</b> 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. <b class="WHI BBLK">npm</b> <b class="BLK BYEL">WARN</b> <b class=MAG>deprecated</b> request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 added 701 packages, and audited 702 packages in 18s 44 packages are looking for funding run `npm fund` for details 1 <b class=RED></b><b class=HIR>high</b><b class=RED></b> severity vulnerability To address all issues, run: npm audit fix Run `npm audit` for details. </pre></html></WRAP> </WRAP> [[https://stackoverflow-com.translate.goog/questions/52538773/how-to-npm-audit-global-packages?_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc|How to npm audit global packages - Stack Overflow]] より...\\ 公式の[[https://docs.npmjs.com/auditing-package-dependencies-for-security-vulnerabilities|npm ドキュメント]] <html><code>npm audit</code></html>に記載されているように、ローカルにインストールされたパッケージで手動で実行できます。これには、**package.json** と **package-lock.json** ファイルの両方が必要です。\\ グローバルにインストールされたパッケージには **package-lock.json** がありません。監査を実行すると、エラーが発生します。\\ <WRAP color_term> <WRAP color_command><html><pre> $ npm audit -g </pre></html></WRAP> <WRAP color_result><html><pre><b class="WHI BBLK">npm</b> <b class="RED BBLK">ERR!</b> <b class=MAG>code</b> EAUDITGLOBAL <b class="WHI BBLK">npm</b> <b class="RED BBLK">ERR!</b><b class=MAG></b> `npm audit` does not support testing globals <b class="WHI BBLK">npm</b> <b class="RED BBLK">ERR!</b><b class=MAG></b> A complete log of this run can be found in: <b class="WHI BBLK">npm</b> <b class="RED BBLK">ERR!</b><b class=MAG></b> /home/tomoyan/.npm/_logs/2023-02-08T20_15_56_893Z-debug-0.log </pre></html></WRAP> </WRAP> **グローバル パッケージを ncu (npm-check-updates) で調べる方法**\\ <WRAP color_term> <WRAP color_command><html><pre> $ npm install -g npm-check-updates </pre></html></WRAP> <WRAP color_result><html><pre> <b class="WHI BBLK">npm</b> <b class="BLK BYEL">WARN</b> <b class=MAG>deprecated</b> @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs added 297 packages, and audited 298 packages in 30s 57 packages are looking for funding run `npm fund` for details found <b class=GRN></b><b class=HIG>0</b><b class=GRN></b> vulnerabilities </pre></html></WRAP> <WRAP color_command><html><pre> $ nodenv rehash $ ncu -g </pre></html></WRAP> <WRAP color_result><html><pre> [====================] 5/5 100% corepack 0.12.1 → 0.<b class=RED>15.3</b> npm 8.15.0 → <b class=RED>9.4.2</b> <b class=CYN>ncu</b> itself cannot upgrade global packages. Run the following to upgrade all global packages: <b class=CYN>npm -g install corepack@0.15.3 npm@9.4.2</b> </pre></html></WRAP> </WRAP> ※<html><code>nodenv rehash</code></html> を実行すると **~/.anyenv/envs/nodenv/shims/** が生成されて <html><code>ncu</code></html> コマンドが使えるようになる🤔\\ ncu に指示されたパッケージを更新する🤔\\ <WRAP color_term> <WRAP color_command><html><pre> $ npm -g install corepack@0.15.3 npm@9.4.2 </pre></html></WRAP> <WRAP color_result><html><pre> removed 7 packages, changed 95 packages, and audited 235 packages in 5s 16 packages are looking for funding run `npm fund` for details found <b class=GRN></b><b class=HIG>0</b><b class=GRN></b> vulnerabilities </pre></html></WRAP> </WRAP> ncu で確認😀\\ <WRAP color_term> <WRAP color_command><html><pre> $ ncu -g </pre></html></WRAP> <WRAP color_result><html><pre> [====================] 5/5 100% All global packages are up-to-date <b class=HIG>:)</b> </pre></html></WRAP> </WRAP> ==== npm notice New minor version of npm available! ... 通知される🤔 ==== Node.js パッケージのインストール時に **npm notice** 通知がされる場合。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>npm</b> install <b class=HIK>-g</b> firebase-tools </pre></html></WRAP> <WRAP color_result><html><pre> <b class="WHI BBLK">npm</b> <b class="BLK BYEL">WARN</b> <b class=MAG>deprecated</b> har-validator@5.1.3: this library is no longer supported <b class="WHI BBLK">npm</b> <b class="BLK BYEL">WARN</b> <b class=MAG>deprecated</b> debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) <b class="WHI BBLK">npm</b> <b class="BLK BYEL">WARN</b> <b class=MAG>deprecated</b> 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. <b class="WHI BBLK">npm</b> <b class="BLK BYEL">WARN</b> <b class=MAG>deprecated</b> request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 added 703 packages in 24s 48 packages are looking for funding run `npm fund` for details <b class="WHI BBLK">npm</b> <b class="CYN BBLK">notice</b> <b class="WHI BBLK">npm</b> <b class="CYN BBLK">notice</b> New <b class=HIR>minor</b> version of npm available! <b class=RED>9.5.0</b> -> <b class=GRN>9.6.4</b> <b class="WHI BBLK">npm</b> <b class="CYN BBLK">notice</b> Changelog: <b class=CYN>https://github.com/npm/cli/releases/tag/v9.6.4</b> <b class="WHI BBLK">npm</b> <b class="CYN BBLK">notice</b> Run <b class=GRN>npm install -g npm@9.6.4</b> to update! <b class="WHI BBLK">npm</b> <b class="CYN BBLK">notice</b> </pre></html></WRAP> </WRAP> **npm notice** 通知に従って npm パッケージを更新する🤔\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>npm</b> install <b class=HIK>-g</b> npm@9.6.4 </pre></html></WRAP> <WRAP color_result><html><pre> removed 1 package, and changed 43 packages in 11s 18 packages are looking for funding run `npm fund` for details </pre></html></WRAP> </WRAP> ==== ERROR open \settings.txt: The system cannot find the file specified. が発生する😱 ==== [[git>coreybutler/nvm-windows/issues/22|ERROR open \settings.txt: · Issue #22 · coreybutler/nvm-windows]]\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nvm</b> use 14.17.5 </pre></html></WRAP> <WRAP color_result><html><pre> ERROR open \settings.txt: The system cannot find the file specified. </pre></html></WRAP> </WRAP> 環境変数 **NVM_HOME** と **NVM_SYMLINK** が存在する場合は削除する。\\ **cmd**、**powershell** を完全に再起動するために、**Windows Terminal** も完全に終了して起動し直す。\\ === exit status 1: ���̑��������s���邽�߂̏\���ȓ����������܂����B が発生する😵 === [[https://github.com/coreybutler/nvm-windows/issues/740|Garbled error message when `nvm use` fails in Japanese environment. · Issue #740 · coreybutler/nvm-windows]]\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>nvm</b> use 14.17.5 </pre></html></WRAP> <WRAP color_result><html><pre> exit status 1: ���̑��������s���邽�߂̏\���ȓ����������܂����B </pre></html></WRAP> </WRAP> 管理者実行しないと使えない機能がある。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>sudo</b> nvm use 14.17.5 </pre></html></WRAP> <WRAP color_result><html><pre> Now using node v14.17.5 (64-bit) </pre></html></WRAP> </WRAP> ===== 参考文献 ===== ==== 付録 ==== [[tw>tomoyan596sp/status/1549466907710853121|なんて言いたいかわからない🤣exit status 1: ���̑��������s���邽�߂̏\���ȓ����������܂����B]]\\ javascript/nodejs.txt 最終更新: 2023/09/26 13:02by ともやん