Gitから参照しているパッケージのインストール時、下記のようなエラーになることがありました。
$ npm i
npm ERR! Could not install from "node_modules/xxxxxxxxxxxxxxxxxxxxxxxxx" as it does not contain a package.json file.
npm ERR! code ENOLOCAL
npm ERR! Could not install from "node_modules/xxxxxxxxxxxxxxxxxx" as it does not contain a package.json file.
教えてもらったのですが、下記のようにするとキャッシュがクリアされ、正しく動くようになりました。
$ npm install -g npm@latest && npm cache clean -f