1. 背景
什么是ENOENT?
It's an abbreviation of Error NO ENTry (or Error NO ENTity), and can actually be used for more than files/directories.
It's abbreviated because C compilers at the dawn of time didn't support more than 8 characters in symbols.
意思就是找不到这个文件。 这个文件是通过依赖包成功运行生成的。
解决方案
根据报错的具体信息查看
- 有些报错信息的path如下:
js
{
**
path: /*/*/node_moduels/esbuild-loader/node_modules/esbuild/install.js
}
如果错误信息如上,则解决方案为:
js
node ./node_moduels/esbuild-loader/node_modules/esbuild/install.js
- 通过查找,有些人的报错信息如下:
js
{
**
path: /*/*/node_modules/esbuild/install.js
}
如果错误信息如上,则解决方案为:
js
node ./node_modules/esbuild/install.js