1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Pacakge.jsonの更新 (npm-check-updates)

Last updated at Posted at 2018-04-13

version

  • node 8.9.4

ただのメモ
最新のpackage.jsonにしたい。その時の手順

npmで最新との比較をする。

$ npm outdated

Package            Current  Wanted  Latest  Location
truffle              4.1.3   4.1.5   4.1.5  study_solidity
zeppelin-solidity    1.7.0   1.8.0   1.8.0  study_solidity

ncu でもnpm outdatedと同じ物がでる事を確認

$ npm install --save-dev npm-check-updates
$ ./node_modules/.bin/ncu 
Using ~ package.json
⸨░░░░░░░░░░░░░░░░░░⸩ ⠏ :
The following dependencies are satisfied by their declared version range, but the installed versions are behind. You can install the latest versions without modifying your package file by using npm update. If you want to update the dependencies in your package file anyway, run ncu -a.

 truffle            ^4.1.3  →  ^4.1.5 
 zeppelin-solidity  ^1.7.0  →  ^1.8.0 


$ ncu -a

ここで package.jsonの更新を確認した。
このままnpm install を実行したらエラーになってしまったので
めんどいから 削除再インストールした。

$ rm -rf node_modules package-lock.json 
$ npm install

ま〜他の記事ではncu -u ってのがあったけど、更新されなかった。
pakage-lock.jsonとかその辺りの影響があったのかも。
目的は達成できたのでよし。

1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?