1.起こったこと
今回は以下のようなエラーが起きました。
1 2 3 4 5 6 7 8 9 | npm WARN npm npm does not support Node.js v15.2.1 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm ERR! /Users/Pillow545/.npm/_logs/2020-11-18T13_44_47_350Z-debug.log |
2.試したこと
参考ページ
上記の記事で紹介されている方法を全部試しました。
が、治りませんでした。
3.解決方法
参考ページ
こちらの記事でやっていた
1 2 | sudo npm cache clean sudo npm install n -g |
というコマンドを入力したらとりあえずは治りました。
結局原因が不明なので、応急処置程度と認識しておくのが無難かと思います。
なにか知っている方は情報をいただけるととても助かります!
ABOUT ME