らいふうっどの閑話休題

興味のあることをゆる~く書いていく

nodist の罠 / nodist trap

nodist を最新バージョン v12.19.0 にしたら、npm installが出来なくなった。
After updating nodist to the latest version v12.19.0, npm install is no longer possible.

npm install をするとこんなエラーメッセージが。
When I do npm install, I get this error message. f:id:ic_lifewood:20201108145802p:plain

$ npm i
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\akihi\AppData\Roaming\npm-cache\_logs\2020-11-08T05_16_03_249Z-debug.log

解決策 / Solutions

nodist のバージョンを下げれば、良い
Lower the version of nodist

デフォルトバージョンの v11.13.0 に変更
Change to default version v11.13.0

f:id:ic_lifewood:20201108150010p:plain

何でもかんでも最新バージョンにすれば良いというものではないという事。
It doesn't mean that you should update everything to the latest version.