LoginSignup
1
1

More than 5 years have passed since last update.

npm install 時の「Update available」出力の対処方法の流れをメモ

Posted at

こんなやつ

CLI
# npm install vue-form-generator
npm WARN gentlyRm not removing /farmer/node_modules/.bin/semver as it wasn't installed by /farmer/node_modules/semver
npm notice created a lockfile as package-lock.json. You should commit this file.
+ vue-form-generator@2.2.1
added 1 package and removed 1072 packages in 7.371s


   ╭─────────────────────────────────────╮
   │                                     │
   │   Update available 5.3.0 → 5.8.0    │
   │     Run npm i -g npm to update      │
   │                                     │
   ╰─────────────────────────────────────╯

指摘された通りに

CLI
# npm i -g npm 
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
+ npm@5.8.0
updated 1 package in 6.764s

再び試す

CLI
# npm install vue-form-generator
+ vue-form-generator@2.2.1
updated 1 package in 0.442s
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1