-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Install of template-matcher fails on windows 10 #358
Comments
Hi @kokarn 👋 To be honest, this looks odd. |
Hello! So it seems I might have posted in the wrong place (ish). However, the exact same error is thrown with |
Looks like the npm config setting is not properly picked up with npm 8.x.x. Can you try to manually set the right config via environment variable: |
Nice find! That worked!
Probably also solves #328 if fixed 👍 |
I might have spoken too soon. Tried installing in another project that actually uses it and it results in this
|
Did some more digging for you. Not sure what's up with my system really :D Installing python now to see what that will result in
|
Hate to break it, but seems even stranger when I manage to build myself.
|
Could you please start a fresh and empty npm project on node 16.13.1 and run npm i @nut-tree/nut-js
npm i @nut-tree/template-matcher and tell me the output? Because:
|
I will give you that output ASAP, but here's a summary to help out npm 7 & npm 8
npm 6
EDIT: Also, yes I have installed the Microsoft Visual C++ Redistributable :) |
And the speculative fix
|
And you have met the prerequisites? Because I can't reproduce this issue and a missing runtime could cause this problem. Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\Users\s1hofmann> mkdir template
Directory: C:\Users\s1hofmann
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 08/01/2022 13:33 template
PS C:\Users\s1hofmann> cd .\template\
PS C:\Users\s1hofmann\template> npm -v
8.1.2
PS C:\Users\s1hofmann\template> node -v
v16.13.1
PS C:\Users\s1hofmann\template> npm init -y
Wrote to C:\Users\s1hofmann\template\package.json:
{
"name": "template",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
PS C:\Users\s1hofmann\template> npm i @nut-tree/nut-js @nut-tree/template-matcher
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
added 281 packages, and audited 282 packages in 34s
10 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities |
Your clue of "prerequisites" solved it for me. Another repository I have run had other weird issues on my windowses, the N version. The reason is that they are missing the "Media Feature Pack". As that was also OpenCv I tried it out, and it works. It's the Media Feature Pack which is missing both on some N versions and other more streamlined versions of Windows.
Installing that feature solves the install & run issues 👍 |
Learned something new today, I didn’t even know these versions existed. Thanks for your follow up and the detailed solution 👍 |
Version
2.0.0
Short overview
It fails
Issue occurs on
Detailed error description
Steps to reproduce error
npm i @nut-tree/nut-js
The text was updated successfully, but these errors were encountered: