Errors building PSI file #74
Replies: 4 comments 2 replies
-
Woah! I tried finding out why the recent email - but then saw this (Sorry - work is killing me) Most are warnings that can be ignored (some things don't need compiling) The inability to run the PSI however, might be related to a bug in the executable packager + recent versions of Node JS. Are you on Discord? |
Beta Was this translation helpful? Give feedback.
-
I'm not, sorry.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Marcus Davies ***@***.***>
Sent: Wednesday, October 9, 2024 3:06:32 PM
To: zwave-js/ZWaveJS.NET ***@***.***>
Cc: John George ***@***.***>; Author ***@***.***>
Subject: Re: [zwave-js/ZWaveJS.NET] Errors building PSI file (Discussion #74)
Woah!
I tried finding out why the recent email (there is no need) - but then saw this (Sorry - work is killing me)
Are you on Discord?
—
Reply to this email directly, view it on GitHub<#74 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABJAZ4MFM32X4GOUPYS4YF3Z2V5DRAVCNFSM6AAAAABO7O3PZOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOBZGYZDCMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Are you using the latest V4 branch (still to be released)? (lots have been changed / fixed) if so.... Install Node JS 18 : https://nodejs.org/dist/v18.20.4/node-v18.20.4-x64.msi (remove v22) Under a privileged command prompt (it's important to work in the
it will output to This will need to be used with the latest library (also in the same Branch) Later versions of Node JS (Say 22) have issues with the builder library, it produces bad binaries (on windows) |
Beta Was this translation helpful? Give feedback.
-
Good to know! There is an improved build script, that I will soon merge into v4 look at the branch fix-up-smart-smart |
Beta Was this translation helpful? Give feedback.
-
Finally getting around to building PSI files. I'm on Windows and have NPM installed (please keep in mind, I'm not a node.js person :) )
Followed the directions in the README, and getting a number of errors.
DeprecationWarning: The 'punycode" module is deprecated.
Warning Cannot resolve 'packageJsonPath"
Warning Cannot resolve 'adapters[adapter'
And a whole slew of Failed to make bytecode node2-x64 for various files that look like this:
Failed to make bytecode node22-x64 for file C:\snapshot\PSI\node_modules\axios\index.js
Interestingly, there is no directory C:\snapshot...
**The server.exe does get created, however, it throws the following error:
node:internal/modules/cjs/loader:1254
throw err;
^
Error: Cannot find module 'C:\snapshot\PSI\server.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1251:15)
at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
at Module._load (node:internal/modules/cjs/loader:1077:27)
at Function.runMain (pkg/prelude/bootstrap.js:1983:12)
at node:internal/main/run_main_module:30:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.9.0**
Any thoughts? I'm sure it's my lack of understanding of Node, but I can't seem to find any config files that might have incorrect settings.
Beta Was this translation helpful? Give feedback.
All reactions