Open Abe-Telo opened 6 months ago
Update. I finally passed the stage when i ran the CMD in administrator mode. With other commands that i ran to resolve it, but i now i get this error and wondering if this does not work in 64bit Windows?
node:internal/modules/cjs/loader:1473
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: \\?\C:\Users\user\Downloads\Tracking Package\package_tracking_app\node_modules\printer\lib\node_printer.node is not a valid Win32 application.
\\?\C:\Users\user\Downloads\Tracking Package\package_tracking_app\node_modules\printer\lib\node_printer.node
at Module._extensions..node (node:internal/modules/cjs/loader:1473:18)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (C:\Users\user\Downloads\Tracking Package\package_tracking_app\node_modules\printer\lib\printer.js:10:22)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v20.10.0
Actually, I see that there are so many versions of this on Git Hub. so let me go down to basics.
What version or command do i use to install this on a Windows 10 64 BIT PC for a CITIZEN CL-E300 DT PRINTER?
Using the latest node.js v20.10.0 dot net 6.0.203 Visual Studio 2019 (my other Deployment computer has 2022 i think or 2019?) node-pre-gyp@0.17.0 node-gyp@10.0.1 python@0.0.4
If there is anything i need to update, Or if i need to use a particle link to get this working, please let me know.
I'm stuck with the same issue.
After running
npm install printer
in Windows 11 64 bit, I got the same error message
npm ERR! npm ERR! enoent This is related to npm not being able to find a file.
I could not continue after this.
Is there a solution to this?? I want to use it because it is Linux compactible. I have used pdf-to-printer for this same purpose, but while that one worked offline, it failed on render server. But the docs says this is Linux compactible, but how is there issue installing the module, has anyone installed it?
I have the same issue on Mac and can't handle it even after adding the --force flag to "npm install ...."
Still having the same issue.
Still having the same issue.
If somebody struggling with installation or building. I am using Linux x64. gyp problems solved by npm install node-gyp --legacy-peer-deps build problems solved by following Rebuild failed because i have only python3 on my system and error gave this
No such file or directory: 'python' while executing command '['python', 'tools/getSourceFiles.py', 'src', 'cc']' in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.
so i decidet to go and edit node_modules/printer/binding.gyp and changed line 23 '<!@(["python", "tools/getSourceFiles.py", "src", "cc"])' to '<!@(["python3", "tools/getSourceFiles.py", "src", "cc"])'
and finally build was successful!!
hope this helps others who has linux too
on a windows platform when i do npm install printer. I am getting this issue.