9
3

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 1 year has passed since last update.

Cannot read property 'pickAlgorithm' of null 解決方法

Posted at

エラーまでの経緯

Vue.js学習の為、新規で構築したまっさらなLaravel8のプロジェクトにVue.jsをインストールするべく下記コマンドを実行したところエラーが発生。

エラーによると、pickAlgorithmを読み取ることができないらしい。

test-laravel $ npm install vue@next vue-loader@next @vue/compiler-sfc

npm ERR! Cannot read property 'pickAlgorithm' of null

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/yusei/.npm/_logs/2022-04-25T01_35_47_680Z-debug-0.log

解決

キャッシュをクリアして再インストールで解決!

test-laravel $ npm cache clear --force
npm WARN using --force Recommended protections disabled.

test-laravel $ npm install vue@next vue-loader@next @vue/compiler-sfc

added 33 packages, and changed 1 package in 7s

75 packages are looking for funding
  run `npm fund` for details
npm notice 
npm notice New minor version of npm available! 8.5.5 -> 8.7.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.7.0
npm notice Run npm install -g npm@8.7.0 to update!
npm notice 

参考記事

9
3
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
9
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?