Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parcel Error - module not found @parcel\fs-search\fs-search.win32-x64-msvc.node #7104

Closed
AmmarSayed opened this issue Oct 15, 2021 · 28 comments

Comments

@AmmarSayed
Copy link

AmmarSayed commented Oct 15, 2021

🐛 bug report

Parcel gives me an error when I run yarn start, or yarn build, or npm start or build

I recently upgraded to windows 11

** Updates: **
I've rolled back to a fresh installation of windows 10, and I got the same error 😒, I'm not sure what's happening here but it seems like there's some mistake in parcel installation.

🎛 Configuration ( package.json)

{
  "name": "testing",
  "version": "1.0.0",
  "license": "MIT",
  "scripts": {
    "start": "parcel index.html",
    "build": "parcel build"
  },
  "devDependencies": {
    "parcel": "^2.0.0"
  }
}

🤔 Expected Behavior

It should run the build or the development server, but neither happened

😯 Current Behavior

An error in the terminal

λ 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-compile-cache\v8-compile-cache.js:159:20)
    at Object.<anonymous> (C:\Users\Ammar Home\Desktop\testing\node_modules\@parcel\fs-search\index.js:19:20)
    at Module._compile (C:\Users\Ammar Home\Desktop\testing\node_modules\v8-compile-cache\v8-compile-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 https://yarnpkg.com/en/docs/cli/run for documentation about this command.

💁 Possible Solution

I removed entire node module , reinstalled parcel several times, and still facing the same issue

🔦 Context

Just runing a normal start script to see a console log in the browser, it was just a startup file

💻 Code Sample

I have nothing special in my code, it's just a startup file

index.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>

index.js file

console.log("Hello world");

🌍 Environment

Software Version(s)
Parcel "^2.0.0"
Node v14.18.1
npm 6.14.15
Yarn 1.22.15
Operating System Windows 11 Pro
Version 21H2
OS build 22000.258
Experience Windows Feature Experience Pack 1000.22000.258.0

My 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

, which the error claiming it's not found! 😕

I'm not sure what could be causing this issue,
any one can help?

Debug log:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start'
1 verbose cli ]
2 info using npm@6.14.15
3 info using node@v14.18.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle testing@1.0.0~prestart: testing@1.0.0
6 info lifecycle testing@1.0.0~start: testing@1.0.0
7 verbose lifecycle testing@1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle testing@1.0.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Ammar Home\Desktop\testing\node_modules\.bin;C:\Users\Ammar Home\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\Users\Ammar Home\cmder\vendor\conemu-maximus5;C:\Users\Ammar Home\cmder\vendor\conemu-maximus5\ConEmu;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs\;C:\Users\Ammar Home\AppData\Local\Microsoft\WindowsApps;C:\Users\Ammar Home\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Ammar Home\AppData\Roaming\npm;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Ammar Home\cmder\vendor\bin;C:\Users\Ammar Home\cmder
9 verbose lifecycle testing@1.0.0~start: CWD: C:\Users\Ammar Home\Desktop\testing
10 silly lifecycle testing@1.0.0~start: Args: [ '/d /s /c', 'parcel index.html' ]
11 silly lifecycle testing@1.0.0~start: Returned: code: 1  signal: null
12 info lifecycle testing@1.0.0~start: Failed to exec start script
13 verbose stack Error: testing@1.0.0 start: `parcel index.html`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:400:28)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:400:28)
13 verbose stack     at maybeClose (internal/child_process.js:1058:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
14 verbose pkgid testing@1.0.0
15 verbose cwd C:\Users\Ammar Home\Desktop\testing
16 verbose Windows_NT 10.0.22000
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v14.18.1
19 verbose npm  v6.14.15
20 error code ELIFECYCLE
21 error errno 1
22 error testing@1.0.0 start: `parcel index.html`
22 error Exit status 1
23 error Failed at the testing@1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
@AmmarSayed AmmarSayed changed the title Parcel compile Error - windows 11 - module not found @parcel\fs-search\fs-search.win32-x64-msvc.node Parcel Error - windows 11, 64 bit - module not found @parcel\fs-search\fs-search.win32-x64-msvc.node Oct 16, 2021
@AmmarSayed
Copy link
Author

** Updates: **
I've rolled back to a fresh installation of windows 10, and I got the same error 😒, I'm not sure what's happening here but it seems like there's some mistake in parcel installation.

@AmmarSayed AmmarSayed changed the title Parcel Error - windows 11, 64 bit - module not found @parcel\fs-search\fs-search.win32-x64-msvc.node Parcel Error - module not found @parcel\fs-search\fs-search.win32-x64-msvc.node Oct 16, 2021
@regin-thomsen
Copy link

+1

@giacomoF5
Copy link

giacomoF5 commented Nov 11, 2021

Hi, some of my students have the same problem : Parcel Error - module not found @parcel\fs-search\fs-search.win32-x64-msvc.node.
I solved the problem using Parcel v1 : npm install -D parcel-bundler
In some computer for any reason Parcel v2 does not work when you use "npx parcel src/index.html" and return the error "Error - module not found @parcel\fs-search\fs-search.win32-x64-msvc.node". Sorry I didn't find the root cause.

@Shausti
Copy link

Shausti commented Nov 12, 2021

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

@mischnic
Copy link
Member

That does make sense because the error message is ERR_DLOPEN_FAILED, not something like ENOENT (for "file not found").

@AmmarSayed
Copy link
Author

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

You Are Ssuuupppper Awwwwsomeee
it worked, and I'll upgrade to windows 11 again and re-check,

just wondering if theres some mistake I did that caused that error, or is it just missing from the windows installation media files.

Thank you anyway for your support,

the issue is resolved on my side for windows 10

@AmmarSayed
Copy link
Author

Updates:

Issue is resolved as well on windows 11

@ubeydeozdmr
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

You're real hero! Thank you so much 😊

@Tech-sensei
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

This really worked for me❤❤❤❤❤ At first I had some doubts, but now I would recommend this to anyone having the same issue. Thanks by the way👍🏿

@Imtiajul
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

Thanks a lot. You are awesome. It took a lot of time to fix this. I got this error after updating the Windows version. It worked for me for gatsby Js framework.

@ayesha1247
Copy link

This worked for me for parcel 2.
The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).
You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

You Are Ssuuupppper Awwwwsomeee it worked, and I'll upgrade to windows 11 again and re-check,

just wondering if theres some mistake I did that caused that error, or is it just missing from the windows installation media files.

Thank you anyway for your support,

the issue is resolved on my side for windows 10

hey ammar i am facing the same issue as yours...can u please guide me on the parcel 2 thing plzz??

@AmmarSayed
Copy link
Author

This worked for me for parcel 2.
The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).
You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

You Are Ssuuupppper Awwwwsomeee it worked, and I'll upgrade to windows 11 again and re-check,
just wondering if theres some mistake I did that caused that error, or is it just missing from the windows installation media files.
Thank you anyway for your support,
the issue is resolved on my side for windows 10

hey ammar i am facing the same issue as yours...can u please guide me on the parcel 2 thing plzz??

Hello dear, it's just a missing c++ package in the windows installation, once I downloaded it and restated my laptop, it just works.

You can download it from here

https://aka.ms/vs/17/release/vc_redist.x64.exe

@ayesha1247
Copy link

ayesha1247 commented Sep 6, 2022 via email

@sakthivelamt
Copy link

It's work's for me anyone please explain me how it is working

@UsamaMohamedKhalil
Copy link

This worked for me for parcel 2.
The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).
You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

You Are Ssuuupppper Awwwwsomeee it worked, and I'll upgrade to windows 11 again and re-check,

just wondering if theres some mistake I did that caused that error, or is it just missing from the windows installation media files.

Thank you anyway for your support,

the issue is resolved on my side for windows 10

I install the file and still the error show on my face.
Screenshot 2022-10-23 011629

@pablojsx
Copy link

pablojsx commented Nov 16, 2022

This worked for me for parcel 2.
The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).
You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

You Are Ssuuupppper Awwwwsomeee it worked, and I'll upgrade to windows 11 again and re-check,
just wondering if theres some mistake I did that caused that error, or is it just missing from the windows installation media files.
Thank you anyway for your support,
the issue is resolved on my side for windows 10

I install the file and still the error show on my face. Screenshot 2022-10-23 011629

Had the same erro and I managed to solve it:
-I Updated windows 10 and then downloaded some security updates.
-Installed the software from the post above.
-Reinstalled node.
-Added NODE_PATH manually thanks to a youtube video.
-delete the node_modules folder from the project and run npm install

Then got a different error:
Restarted the computer and it worked. Remember that the "main" key inside the package.json must have a js extension.

@yiyasha15
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

What about macOS?

@boikwechi
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

What do I do when this doesn't work?

@chaitanyatekane
Copy link

Hi, some of my students have the same problem : Parcel Error - module not found @parcel\fs-search\fs-search.win32-x64-msvc.node. I solved the problem using Parcel v1 : npm install -D parcel-bundler In some computer for any reason Parcel v2 does not work when you use "npx parcel src/index.html" and return the error "Error - module not found @parcel\fs-search\fs-search.win32-x64-msvc.node". Sorry I didn't find the root cause.

this worked for me as https://aka.ms/vs/17/release/vc_redist.x64.exe was not working

@chaitanyatekane
Copy link

This worked for me for parcel 2.
The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).
You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

What do I do when this doesn't work?

try using parcel v1 : npm install -D parcel-bundler

@sanyuan0704
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

You are the hero, bro

@yuvraj9011
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

Thanks worked for me

@Oluwakunmi-Obaditan
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

This worked for me. PS: using a windows 11 PC

@govindpateriya
Copy link

This worked for me for parcel 2.
The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).
You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

You're real hero! Thank you so much 😊

thanks brother problem sloved!

@skimran-coder
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

You're such a lifesaver. I wasted 2 hours on this; I wish I had found your solution earlier. Thank you so much. ❤️

@naasirshine
Copy link

This worked for me for parcel 2.

The issue is that the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

Thank you so much. ❤️
appreciate that
error

@AwalHossain
Copy link

This worked for me for parcel 2.

The issue is because the package is failing due to a missing library on the computer. fs-search requires Microsoft Visual C++ 2015 Redistributable (x64).

You can get the download here -> https://aka.ms/vs/17/release/vc_redist.x64.exe

RdjReliefGIF
This is a life saver, man! I just spent more than 4 hours solving this issue. Just setup my new PC and tried to run it. Thank God, I found it.

Thanks man!

@GagandeepSidhu
Copy link

GagandeepSidhu commented Apr 7, 2024

It's not because of the missing library, but rather the older version of Node.js. Try upgrading the Node version and then running the command again, it should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests