You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the hello world example on Windows 10.
node -v
v18.16.0
npm -v
9.5.1
npm init neon cpu-count
cd cpu-count
npm install
node
require('.')
But got the error below:
(base) C:\Users\iridium\Documents\cpu-count>node
Welcome to Node.js v18.16.0.
Type ".help" for more information.
req
Request require
require('.')
Uncaught:
Error: \?\C:\Users\iridium\Documents\cpu-count\index.node is not a valid Win32 application.
\?\C:\Users\iridium\Documents\cpu-count\index.node
at Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18) {
code: 'ERR_DLOPEN_FAILED'
}
I also try use the node-v14.16.0-x64 and the node-v16.13.0-x64 and also failed.
The text was updated successfully, but these errors were encountered:
Thanks for your help.
Windows 10 version 21H2
AMD Ryzen Threadripper 3970X 32-Core
I solved the problem by deleting the rust installed by the rust-1.70,0-i686-pc-windows-gpu installer and reinstall the rust by the rustup-init installer.
I followed the hello world example on Windows 10.
node -v
v18.16.0
npm -v
9.5.1
But got the error below:
(base) C:\Users\iridium\Documents\cpu-count>node
Welcome to Node.js v18.16.0.
Type ".help" for more information.
I also try use the node-v14.16.0-x64 and the node-v16.13.0-x64 and also failed.
The text was updated successfully, but these errors were encountered: