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

【Parcel】The specified module could not be found.とエラーが出た時の対処

Posted at

概要

  • クリーンインストールしたPCで改めてnode.jsの環境構築を行い、parcelを実行しようとしたところ、
npx parcel index.html
Error: The specified module could not be found.
(中略)
  code: 'ERR_DLOPEN_FAILED'

とのエラーが発生した。

調べたこと

githubのissueで同様の事例を見つけた。ここでもクリーンインストールが原因になっているようで、読んでみると解決法が書かれていた。

解決法

windows関連ファイルが消えたことでMicrosoft Visual C++が抜けてしまったことが要因。

ここ(https://docs.microsoft.com/ja-JP/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022 ) からVisual Studio 2015の再頒布パッケージでインストールする。
これで動くようになる。

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