25-03-2025
This commit is contained in:
@@ -19,7 +19,10 @@ lrwxrwxrwx 1 root root 38 Oct 26 2022 npx -> ../lib/node_modules/npm/bin/
|
||||
### Installer nvm
|
||||
|
||||
```bash
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
|
||||
|
||||
$ nvm -v
|
||||
0.40.0
|
||||
```
|
||||
|
||||
Installer node=lts/fermium (ou mettre-à-jour)
|
||||
@@ -28,6 +31,11 @@ Installer node=lts/fermium (ou mettre-à-jour)
|
||||
nvm install --lts=hydrogen
|
||||
```
|
||||
|
||||
```bash
|
||||
$ which node
|
||||
/var/services/homes/bruno/.nvm/versions/node/v20.11.0/bin/node
|
||||
```
|
||||
|
||||
Mettre-à-jour npm:
|
||||
|
||||
```bash
|
||||
@@ -42,6 +50,46 @@ nvm reinstall-packages 14.17.0
|
||||
|
||||
|
||||
|
||||
### npm
|
||||
|
||||
```bash
|
||||
$ which npm
|
||||
/var/services/homes/bruno/.nvm/versions/node/v20.11.0/bin/npm
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
```bash
|
||||
$ npm doctor
|
||||
|
||||
Check Value Recommendation/Notes
|
||||
npm ping ok
|
||||
npm -v not ok Use npm v10.8.2
|
||||
node -v not ok Use node v20.16.0 (current: v20.11.0)
|
||||
npm config get registry ok using default registry (https://registry.npmjs.org/)
|
||||
git executable in PATH ok /usr/local/bin/git
|
||||
global bin folder in PATH not ok Error: Add /volume1/homes/bruno/.nvm/versions/node/v20.11.0/bin to your $PATH
|
||||
Perms check on cached files ok
|
||||
Perms check on local node_modules ok
|
||||
Perms check on global node_modules ok
|
||||
Perms check on local bin folder ok
|
||||
Perms check on global bin folder ok
|
||||
npm WARN verifyCachedFiles Content garbage-collected: 9 (5411539 bytes)
|
||||
npm WARN verifyCachedFiles Cache issues have been fixed
|
||||
Verify cache contents ok verified 380 tarballs
|
||||
npm notice
|
||||
npm notice New minor version of npm available! 10.4.0 -> 10.8.2
|
||||
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
|
||||
npm notice Run npm install -g npm@10.8.2 to update!
|
||||
npm notice
|
||||
npm ERR! Some problems found. See above for recommendations.
|
||||
|
||||
npm ERR! A complete log of this run can be found in: /var/services/homes/bruno/.npm/_logs/2024-08-21T07_58_05_115Z-debug-0.log
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Installer thumbsup
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user