每次我尝试使用 parcel 在 vscode 上投影时,我都会收到此代码错误:'ERR_DLOPEN_FAILED'



我是新来的包裹,我正在遵循一个教程,我下载的包裹的最后一个版本不工作,我尝试了讲师使用的版本,但同样的事情发生了

终端输出为

Error: The specified module could not be found.
\?\D:\Downloads\starter\node_modules@parcel\source-map\parcel_sourcemap_node\artifacts\index.win32-x64-msvc.node
at Module._extensions..node (node:internal/modules/cjs/loader:1243:18)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (D:\Downloads\starter\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
at Object.<anonymous> (D:\Downloads\starter\node_modules@parcel\source-        map\parcel_sourcemap_node\index.js:15:18)
at Module._compile (D:\Downloads\starter\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12) {
code: 'ERR_DLOPEN_FAILED'
}

我以前也有过同样的错误,我删除了我的node_modules包,然后再次运行,这对我有效

最新更新