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

I am not able to cpu-features using npm command #11

Closed
tnavanath opened this issue Oct 7, 2022 · 3 comments
Closed

I am not able to cpu-features using npm command #11

tnavanath opened this issue Oct 7, 2022 · 3 comments
Labels
question Further information is requested

Comments

@tnavanath
Copy link

I am not able to cpu-features using npm command

Received error :
throw new error unable to detect compiler type.
Please suggest solution

I was trying to execute the module at windows and Linus machine I got the same error.
Also I don't see it has good compatibility with windows machine.

@mscdex
Copy link
Owner

mscdex commented Oct 7, 2022

Do you have a working build environment installed that is supported by node-gyp?

@mscdex mscdex added the question Further information is requested label Oct 7, 2022
@mjsornp
Copy link

mjsornp commented Oct 12, 2022

I had the same problem。

throw new Error('Unable to detect compiler type');

@nishantsood-de
Copy link

nishantsood-de commented Oct 13, 2022

I am facing the same issue.

npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node buildcheck.js > buildcheck.gypi && node-gyp rebuild
npm ERR! C:\Users\niksood\AppData\Roaming\npm\node_modules\cpu-features\node_modules\buildcheck\lib\index.js:133
npm ERR!         throw new Error('Unable to detect compiler type');
npm ERR!         ^
npm ERR!
npm ERR! Error: Unable to detect compiler type
npm ERR!     at new BuildEnvironment (C:\Users\niksood\AppData\Roaming\npm\node_modules\cpu-features\node_modules\buildcheck\lib\index.js:133:15)
npm ERR!     at Object.<anonymous> (C:\Users\niksood\AppData\Roaming\npm\node_modules\cpu-features\buildcheck.js:5:12)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1105:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR!     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
npm ERR!     at node:internal/main/run_main_module:17:47

@mscdex mscdex closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants