I recently updated my windows from windows 10 to 11.
** Update ** I've reinstalled windows 10 again, but I'm receiving the same error
When I rund yarn start, or npm start, I receive the below error
λ yarn start
yarn run v1.22.15
$ parcel index.html
Error: The specified module could not be found.
\\?\C:\Users\Ammar Home\Desktop\testing\node_modules\@parcel\fs-search\fs-search.win32-x64-msvc.node
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (C:\Users\Ammar Home\Desktop\testing\node_modules\v8-pile-cache\v8-pile-cache.js:159:20)
at Object.<anonymous> (C:\Users\Ammar Home\Desktop\testing\node_modules\@parcel\fs-search\index.js:19:20)
at Module._pile (C:\Users\Ammar Home\Desktop\testing\node_modules\v8-pile-cache\v8-pile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12) {
code: 'ERR_DLOPEN_FAILED'
}
error Command failed with exit code 1.
info Visit for documentation about this mand.
my setup is very simple, here're the details
package.json file
{
"name": "testing",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"start": "parcel index.html",
"build": "parcel build"
},
"devDependencies": {
"parcel": "^2.0.0"
}
}
nothing special in my index.html or my javascript file,
html file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<script src="./index.js" type="module"></script>
</body>
</html>
javascript file
console.log("Hello world");
my Environment
Parcel 2
Node v14.18.1
npm/Yarn
Operating System Windows 11 Pro
Version 21H2
OS build 22000.258
experience Windows Feature Experience Pack 1000.22000.258.0
labtop specification
Processor Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz 1.80 GHz
Installed RAM 8.00 GB (7.88 GB usable)
System type 64-bit operating system, x64-based processor
The wierd thing is when I looked at the specified folder in the error, I found that module "fs-search.win32-x64-msvc.node" , It's already there under following directory
node_moduels/@parcel/fs-search /fs-search.win32-x64-msvc.node
It's already exist, however the error claiming it's not found!