Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

"This version of µWS is not compatible with your Node.js build:" this shows while using " truffle migrate" #4408

Open
gha1ish opened this issue May 17, 2023 · 5 comments

Comments

@gha1ish
Copy link

gha1ish commented May 17, 2023

apple@Apples-MacBook-Pro web % truffle migrate
This version of µWS is not compatible with your Node.js build:

Error: Cannot find module '../binaries/uws_darwin_x64_115.node'
Require stack:

  • /usr/local/lib/node_modules/truffle/node_modules/ganache/node_modules/@trufflesuite/uws-js-unofficial/src/uws.js
  • /usr/local/lib/node_modules/truffle/node_modules/ganache/dist/node/core.js
  • /usr/local/lib/node_modules/truffle/build/migrate.bundled.js
  • /usr/local/lib/node_modules/truffle/node_modules/original-require/index.js
  • /usr/local/lib/node_modules/truffle/build/cli.bundled.js
    Falling back to a NodeJS implementation; performance may be degraded.
@ElRoroStupido
Copy link

hello I'm on windows and got the exact same error while trying to use 'truffle migrate --network development' 'truffle test' and even at ganache launch. I get
Error: Cannot find module '../binaries/uws_win32_x64_115.node'
and he says the exact same files as you are required but i verified and they are where that have to be.

there is even a confusion with the chain id .
when launching ganache I get chain id 1337, and this is what I write in the truffle-config.js file.
BUT somehow when I try to migrate/ compile it says that the chain id is some weird number such as "1684846497257"

well, searching on google doesn't help it's like that 115. node never existed lol

@davidmurdoch
Copy link
Member

115 is the node module version for Node 20. We don't fully support Node 20 yet (everything works perfectly, but uWS isn't used for the http server -- hence the warning message "falling back to a NodeJS implementation").

1684846497257 is the network id, not the chain id.

@ElRoroStupido
Copy link

So, does it mean I should use some previous node version ? Or does it changes nothing ?
And, when I run ganache I know I'm maybe dumb but I can't find where the network id is written

@davidmurdoch
Copy link
Member

Use Node v18 until we support Node 20.

The network id is randomized on start up. In your truffle config you can use * to mean "any network id", or you can specify the --chain.networkId=1337 if you'd prefer.

@ElRoroStupido
Copy link

Thanks a lot for your help, i'll do that

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

No branches or pull requests

3 participants