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

Win 11, WSL2 (ubuntu22.04lts), npm 9.5.1, node.js 18.16.0, is not ale to install @nut-tree/template-matcher successfully #509

Closed
2 tasks
michelleXIE2014 opened this issue May 3, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@michelleXIE2014
Copy link

Is not ale to install @nut-tree/template-matcher successfully

Desired execution environment / tested on

  • Virtual machine
  • Docker container
  • [V] Dev/Host system: Win 11, wSL2, npm 9.5.1, node.js 18.16.0

Detailed question
When I ran npm
the error is like this
"npm ERR! code 1
npm ERR! path \wsl.localhost\Ubuntu-22.04\home\mxie\repo\ecidcaJSTests\node_modules\opencv4nodejs-prebuilt
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install || (node ./install/dependencies.js && node ./install/install.js)
npm ERR! '\wsl.localhost\Ubuntu-22.04\home\mxie\repo\ecidcaJSTests\node_modules\opencv4nodejs-prebuilt'
npm ERR! CMD.EXE was started with the above path as the current directory.
npm ERR! UNC paths are not supported. Defaulting to Windows directory.
npm ERR! node:internal/modules/cjs/loader:1078
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module 'C:\Windows\package.json'
npm ERR! Require stack:
npm ERR! - \wsl.localhost\Ubuntu-22.04\home\mxie\repo\ecidcaJSTests\node_modules\napi-build-utils\index.js
npm ERR! - \wsl.localhost\Ubuntu-22.04\home\mxie\repo\ecidcaJSTests\node_modules\prebuild-install\bin.js
npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
npm ERR! at Module._load (node:internal/modules/cjs/loader:920:27)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1141:19)
npm ERR! at require (node:internal/modules/cjs/helpers:110:18)
npm ERR! at Object. (\wsl.localhost\Ubuntu-22.04\home\mxie\repo\ecidcaJSTests\node_modules\napi-build-utils\index.js:5:11)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1254:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1117:32)
npm ERR! at Module._load (node:internal/modules/cjs/loader:958:12)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1141:19) {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! requireStack: [
npm ERR! '\\wsl.localhost\Ubuntu-22.04\home\mxie\repo\ecidcaJSTests\node_modules\napi-build-utils\index.js',
npm ERR! '\\wsl.localhost\Ubuntu-22.04\home\mxie\repo\ecidcaJSTests\node_modules\prebuild-install\bin.js'
npm ERR! ]
npm ERR! }
npm ERR!
npm ERR! Node.js v18.16.0
npm ERR! node:internal/modules/cjs/loader:1078
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module 'C:\Windows\install\dependencies.js'
npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
npm ERR! at Module._load (node:internal/modules/cjs/loader:920:27)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
npm ERR! at node:internal/main/run_main_module:23:47 {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! requireStack: []
npm ERR! }
npm ERR!
npm ERR! Node.js v18.16.0

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mxie\AppData\Local\npm-cache_logs\2023-05-02T21_20_36_400Z-debug-0.log"

@michelleXIE2014 michelleXIE2014 changed the title Win 11, wSL2, npm 9.5.1, node.js 18.16.0, is not ale to install @nut-tree/template-matcher successfully Win 11, WSL2 (ubuntu22.04lts), npm 9.5.1, node.js 18.16.0, is not ale to install @nut-tree/template-matcher successfully May 3, 2023
@s1hofmann
Copy link
Member

Hi @michelleXIE2014 👋

@nut-tree/template/matcher is not yet compatible with node 18 or later. See

https://github.com/nut-tree/TemplateMatcher/blob/develop/README.md

and

#478

It is also not possible to run a Windows automation from within WSL, please use e.g. PowerShell

@s1hofmann s1hofmann added the duplicate This issue or pull request already exists label May 3, 2023
@michelleXIE2014
Copy link
Author

I see, thank you @s1hofmann :) I will downgrade my node.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants