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

SerialPort on Windows does not worked - bindings.node is not a valid Win32 application. #879

Open
5 tasks
Paosko opened this issue Jan 20, 2022 · 14 comments
Open
5 tasks
Labels

Comments

@Paosko
Copy link

Paosko commented Jan 20, 2022

Which node are you reporting an issue on?

node-red-node-serialport

What are the steps to reproduce?

try install it on Windows machine

What happens?

When I install the node-red-node-serialport it install well, but in the node-red command line occured warning:

runtime.welcome

20 Jan 12:45:29 - [info] runtime.version
20 Jan 12:45:29 - [info] runtime.version
20 Jan 12:45:29 - [info] Windows_NT 10.0.19042 ia32 LE
20 Jan 12:45:32 - [info] server.loading
20 Jan 12:45:33 - [warn] ------------------------------------------------------
20 Jan 12:45:33 - [warn] [node-red-node-serialport/serialport] Error: \?\C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules@serialport\bindings\build\Release\bindings.node is not a valid Win32 application.
\?\C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules@serialport\bindings\build\Release\bindings.node
20 Jan 12:45:33 - [warn] ------------------------------------------------------

20 Jan 12:45:33 - [info] runtime.paths.settings
20 Jan 12:45:33 - [info] context.log-store-init
20 Jan 12:45:33 - [info] storage.localfilesystem.user-dir
20 Jan 12:45:33 - [warn] storage.localfilesystem.projects.disabled
20 Jan 12:45:33 - [info] storage.localfilesystem.flows-file

FreeMASTER Lite server is running

Listening on port 80

20 Jan 12:45:33 - [warn] nodes.credentials.system-key-warning
20 Jan 12:45:33 - [info] nodes.flows.starting-flows
20 Jan 12:45:33 - [info] nodes.flows.started-flows

I tried to call npm rebuild,
also reinstalled it by command, or by pallete.
and many other thinks but it did not hepled.

What do you expect to happen?

I expect that the UART will worked.

Please tell us about your environment:

  • Node-RED version:V1.2.7
  • node.js version:v16.13.2
  • npm version:8.1.2
  • Platform/OS:Windows_NT 10.0.19042 ia32 LE
  • Browser:Edge
@Paosko
Copy link
Author

Paosko commented Jan 20, 2022

After restart the node-red this is occured in the pallete.
image

@hardillb
Copy link
Member

We probably need the logs from the install as well. How did you install the node?

Can you run npm rebuild while in the C:\GreenVIP_Testing\Testing\Node-red\Phase0. This should try and rebuild the native component of the serial node (which the node-red-node-serial depends on)

@Paosko
Copy link
Author

Paosko commented Jan 20, 2022

I don't know from where I can get better log then this one from installation.
Previously there was not so many vulnerabilities, I played with that a lot.
On the beginning I installed it by pallete in Node-red.
Then I install it by command, when it did not helped, I tried to rebuild it, and installed different package for serial communication etc.

I also tried to do the npm rebuild, but the error is still the same. Even it write that the rebuild was successful.

image

@Paosko
Copy link
Author

Paosko commented Jan 20, 2022

Here I foundhow to create a better log.

C:\GreenVIP_Testing\Testing\Node-red\Phase0>npm install node-red-node-serialport --loglevel verbose
npm verb cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
npm verb cli 'install',
npm verb cli 'node-red-node-serialport',
npm verb cli '--loglevel',
npm verb cli 'verbose'
npm verb cli ]
npm info using npm@8.1.2
npm info using node@v16.13.2
npm timing npm:load:whichnode Completed in 0ms
npm timing config:load:defaults Completed in 2ms
npm timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 3ms
npm timing config:load:builtin Completed in 3ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 1ms
npm timing config:load:file:C:\GreenVIP_Testing\Testing\Node-red\Phase0.npmrc Completed in 1ms
npm timing config:load:project Completed in 1ms
npm timing config:load:file:C:\Users\nxf68958.npmrc Completed in 0ms
npm timing config:load:user Completed in 0ms
npm timing config:load:file:C:\Users\nxf68958\AppData\Roaming\npm\etc\npmrc Completed in 0ms
npm timing config:load:global Completed in 1ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 12ms
npm timing npm:load:configload Completed in 12ms
npm timing npm:load:setTitle Completed in 0ms
npm timing npm:load:setupLog Completed in 0ms
npm timing config:load:flatten Completed in 3ms
npm timing npm:load:cleanupLog Completed in 2ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load:projectScope Completed in 1ms
npm timing npm:load Completed in 64ms
npm timing arborist:ctor Completed in 1ms
npm timing idealTree:init Completed in 178ms
npm timing idealTree:userRequests Completed in 3ms
npm timing arborist:ctor Completed in 0ms
npm http fetch GET 200 https://registry.npmjs.org/node-red-node-serialport 1011ms (cache revalidated)
npm timing idealTree:#root Completed in 1031ms
npm timing idealTree:node_modules/node-red-node-serialport Completed in 0ms
npm timing idealTree:buildDeps Completed in 1036ms
npm timing idealTree:fixDepFlags Completed in 5ms
npm timing idealTree Completed in 1243ms
npm timing reify:loadTrees Completed in 1246ms
npm timing reify:diffTrees Completed in 25ms
npm timing reify:retireShallow Completed in 0ms
npm timing reify:createSparse Completed in 0ms
npm timing reify:loadBundles Completed in 0ms
npm timing reify:unpack Completed in 0ms
npm timing reify:unretire Completed in 0ms
npm timing build:queue Completed in 0ms
npm timing build:deps Completed in 1ms
npm timing build Completed in 3ms
npm timing reify:build Completed in 5ms
npm timing reify:trash Completed in 0ms
npm timing reify:save Completed in 57ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 343ms
npm timing auditReport:getReport Completed in 351ms
npm timing metavuln:cache:get:security-advisory:electron:VPD4pna8/tv8JsYPc04hXFP+tAM4gMOTSleTCvyjVdICTsNVFCgAXl6Fenw6cusfGeLXY0imDIWUtWEpqh92pg== Completed in 27ms
npm timing metavuln:cache:get:security-advisory:trim-newlines:FKtGPIHE0cWJrTOi1H996Hvqnj28iATHiQozLL7kOyZM+hBcKTbQkvTcxBhdBUKOwk1FocLiNFl3tMgMuyKb0g== Completed in 34ms
npm timing metavuln:cache:get:security-advisory:electron:hz3RRMYP3YVdV8XiGo/1srkVcXL8ICV3jGbz+JGeSbWnMWz43pdUtMf1W6qq6FY7F6fIY8MXCHqSezEQbHsZFg== Completed in 36ms
npm timing metavuln:cache:get:security-advisory:electron:/FR+1cbiLcZbKZ7OUoO/NbNucp38fMwJ6MCUpw0YzHUP7srhxdSotabxavupayLvYPx0INy5ASWJ0YG+kq1bbg== Completed in 38ms
npm timing metavuln:cache:get:security-advisory:electron:5BHeUFIOgQPo7RFysZIJl0eNshUMa89fmasg4Vgelf3VFSUagBkXzNKRyFGFs3b9bROpEUmuDynahoixgh6Fdg== Completed in 44ms
npm timing metavuln:cache:get:security-advisory:nth-check:phzbT+HCVgpA1C0GvSQ+THzeiYTr85AjCi0uOiMdmcC5FQFZSg2cAxsM7WmntPfv9aYplGKdCep6sPcOzXhQDw== Completed in 40ms
npm timing metavuln:cache:get:security-advisory:electron:P7FJQFBrGXdrJVg8IQ0WCjwBDDZ7JAYqDcTPSox+NyQ+xtE3RQvC8JSWA1hhiT2s7WjCF91mr9pM8yXLiNbigQ== Completed in 44ms
npm timing metavuln:cache:get:security-advisory:minimist:OEyk29Vl0DZNVJ8kyTCTMAZcObN2QmV+lAIdXAtmN7Cu4huA1bHrMOcMmkSlrEFof3NBw6fKARGrIp+1p6NuFw== Completed in 41ms
npm timing metavuln:cache:get:security-advisory:electron:ZZ5Yr6WdjPL7r4UwtvHFl4B83AsKTo836aDSCV63/jlJx3zQxBtfV0O3s3hZ5TSWe+Yp11gAbQ6c3nNtLfRMtg== Completed in 45ms
npm http fetch GET 200 https://registry.npmjs.org/trim-newlines 170ms (cache revalidated)
npm timing metavuln:packument:trim-newlines Completed in 175ms
npm timing metavuln:load:security-advisory:trim-newlines:1006754 Completed in 1ms
npm timing metavuln:calculate:security-advisory:trim-newlines:1006754 Completed in 193ms
npm http fetch GET 200 https://registry.npmjs.org/nth-check 185ms (cache revalidated)
npm timing metavuln:packument:nth-check Completed in 189ms
npm timing metavuln:load:security-advisory:nth-check:1004967 Completed in 0ms
npm timing metavuln:calculate:security-advisory:nth-check:1004967 Completed in 204ms
npm http fetch GET 200 https://registry.npmjs.org/minimist 205ms (cache revalidated)
npm timing metavuln:packument:minimist Completed in 207ms
npm timing metavuln:load:security-advisory:minimist:1006180 Completed in 0ms
npm timing metavuln:calculate:security-advisory:minimist:1006180 Completed in 214ms
npm http fetch GET 200 https://registry.npmjs.org/electron 846ms (cache revalidated)
npm timing metavuln:packument:electron Completed in 872ms
npm timing metavuln:load:security-advisory:electron:1004901 Completed in 20ms
npm timing metavuln:calculate:security-advisory:electron:1004901 Completed in 896ms
npm timing metavuln:load:security-advisory:electron:1005484 Completed in 18ms
npm timing metavuln:calculate:security-advisory:electron:1005484 Completed in 916ms
npm timing metavuln:load:security-advisory:electron:1006101 Completed in 11ms
npm timing metavuln:calculate:security-advisory:electron:1006101 Completed in 929ms
npm timing metavuln:load:security-advisory:electron:1006102 Completed in 12ms
npm timing metavuln:calculate:security-advisory:electron:1006102 Completed in 940ms
npm timing metavuln:load:security-advisory:electron:1006103 Completed in 5ms
npm timing metavuln:calculate:security-advisory:electron:1006103 Completed in 948ms
npm timing metavuln:load:security-advisory:electron:1006106 Completed in 7ms
npm timing metavuln:calculate:security-advisory:electron:1006106 Completed in 958ms
npm timing metavuln:cache:get:security-advisory:meow:qMGSqDOPwBYOuSDi8UxYBvIWKNbskU0xZuNoRfLxyZkJyqN9VQIiZVdFgUXVBJO6KmJn12ycEpMrEdlH2bYikg== Completed in 10ms
npm http fetch GET 200 https://registry.npmjs.org/meow 68ms (cache revalidated)
npm timing metavuln:packument:meow Completed in 70ms
npm timing metavuln:load:security-advisory:meow:FKtGPIHE0cWJrTOi1H996Hvqnj28iATHiQozLL7kOyZM+hBcKTbQkvTcxBhdBUKOwk1FocLiNFl3tMgMuyKb0g== Completed in 0ms
npm timing metavuln:calculate:security-advisory:meow:FKtGPIHE0cWJrTOi1H996Hvqnj28iATHiQozLL7kOyZM+hBcKTbQkvTcxBhdBUKOwk1FocLiNFl3tMgMuyKb0g== Completed in 73ms
npm timing metavuln:cache:get:security-advisory:nightmare:arIF7J7A4Hn3H3+0cenKv9WJ1C4Cvtw1LU8Ad9Bo6/SqYgAmEe0OpgTNceeylx3uujnpBxOPcCQr+cLwW+WAFw== Completed in 2ms
npm http fetch GET 200 https://registry.npmjs.org/nightmare 255ms (cache revalidated)
npm timing metavuln:packument:nightmare Completed in 263ms
npm timing metavuln:load:security-advisory:nightmare:VPD4pna8/tv8JsYPc04hXFP+tAM4gMOTSleTCvyjVdICTsNVFCgAXl6Fenw6cusfGeLXY0imDIWUtWEpqh92pg== Completed in 1ms
npm timing metavuln:calculate:security-advisory:nightmare:VPD4pna8/tv8JsYPc04hXFP+tAM4gMOTSleTCvyjVdICTsNVFCgAXl6Fenw6cusfGeLXY0imDIWUtWEpqh92pg== Completed in 287ms
npm timing metavuln:cache:get:security-advisory:css-select:QvKraIGpcyVxEwFP0qxpEFcY9Kx8ThCeiILkMKxPQIjEnGuEnh3anOmKy/kR5kMZzYPfqYeVltD9/X58U3TjZA== Completed in 20ms
npm http fetch GET 200 https://registry.npmjs.org/css-select 74ms (cache revalidated)
npm timing metavuln:packument:css-select Completed in 77ms
npm timing metavuln:load:security-advisory:css-select:phzbT+HCVgpA1C0GvSQ+THzeiYTr85AjCi0uOiMdmcC5FQFZSg2cAxsM7WmntPfv9aYplGKdCep6sPcOzXhQDw== Completed in 0ms
npm timing metavuln:calculate:security-advisory:css-select:phzbT+HCVgpA1C0GvSQ+THzeiYTr85AjCi0uOiMdmcC5FQFZSg2cAxsM7WmntPfv9aYplGKdCep6sPcOzXhQDw== Completed in 81ms
npm timing metavuln:cache:get:security-advisory:optimist:o2lE7fUIfwYPar3iqA3kQPQn50grDPspK9dO7+W99ywE5XzwHQesNjU/K2CCdf3cVz9S8M4g3GHIkLLHncYtjw== Completed in 4ms
npm http fetch GET 200 https://registry.npmjs.org/optimist 55ms (cache revalidated)
npm timing metavuln:packument:optimist Completed in 57ms
npm timing metavuln:load:security-advisory:optimist:OEyk29Vl0DZNVJ8kyTCTMAZcObN2QmV+lAIdXAtmN7Cu4huA1bHrMOcMmkSlrEFof3NBw6fKARGrIp+1p6NuFw== Completed in 0ms
npm timing metavuln:calculate:security-advisory:optimist:OEyk29Vl0DZNVJ8kyTCTMAZcObN2QmV+lAIdXAtmN7Cu4huA1bHrMOcMmkSlrEFof3NBw6fKARGrIp+1p6NuFw== Completed in 60ms
npm timing metavuln:cache:get:security-advisory:pretty-bytes:DS50qfg3FpuCID8jMxY7GvEC7/+oTfzv6vBXHutQRlP5ASCkihp3mIQgdpe/WRF06YzaeF/c7O9FL2cGczLI0Q== Completed in 3ms
npm http fetch GET 200 https://registry.npmjs.org/pretty-bytes 60ms (cache revalidated)
npm timing metavuln:packument:pretty-bytes Completed in 62ms
npm timing metavuln:load:security-advisory:pretty-bytes:qMGSqDOPwBYOuSDi8UxYBvIWKNbskU0xZuNoRfLxyZkJyqN9VQIiZVdFgUXVBJO6KmJn12ycEpMrEdlH2bYikg== Completed in 0ms
npm timing metavuln:calculate:security-advisory:pretty-bytes:qMGSqDOPwBYOuSDi8UxYBvIWKNbskU0xZuNoRfLxyZkJyqN9VQIiZVdFgUXVBJO6KmJn12ycEpMrEdlH2bYikg== Completed in 65ms
npm timing metavuln:cache:get:security-advisory:nightmare-upload:6xPpS/e0iNTqds9RYtjFejqk7Rz1gba9t+IzGpyEt3PysQJAd8ajmogrTEqWNRW48BpPbQNFL4aOZqTkLno1nw== Completed in 5ms
npm timing metavuln:cache:get:security-advisory:nightmare-download-manager:lHW+XLaU85N+f94hRHKMN/V5ZHXpmTlIJUIs3PMCQZ/YNGni1OH6h+Bsj90Omu3hePgzpknY/zwNuZVGC33t0A== Completed in 7ms
npm timing metavuln:cache:get:security-advisory:node-red-contrib-nbrowser:M2OlNYmSXABbRMZgGVSqTgZ3U/cZJpId6EVhs5lKCJ1ELrW1YgpXbkPJuZey2NO7lm8UZuk+CSQuBx1Qy24sIw== Completed in 8ms
npm http fetch GET 200 https://registry.npmjs.org/nightmare-download-manager 773ms (cache revalidated)
npm timing metavuln:packument:nightmare-download-manager Completed in 778ms
npm timing metavuln:load:security-advisory:nightmare-download-manager:arIF7J7A4Hn3H3+0cenKv9WJ1C4Cvtw1LU8Ad9Bo6/SqYgAmEe0OpgTNceeylx3uujnpBxOPcCQr+cLwW+WAFw== Completed in 0ms
npm timing metavuln:calculate:security-advisory:nightmare-download-manager:arIF7J7A4Hn3H3+0cenKv9WJ1C4Cvtw1LU8Ad9Bo6/SqYgAmEe0OpgTNceeylx3uujnpBxOPcCQr+cLwW+WAFw== Completed in 792ms
npm http fetch GET 200 https://registry.npmjs.org/nightmare-upload 842ms (cache revalidated)
npm timing metavuln:packument:nightmare-upload Completed in 845ms
npm timing metavuln:load:security-advisory:nightmare-upload:arIF7J7A4Hn3H3+0cenKv9WJ1C4Cvtw1LU8Ad9Bo6/SqYgAmEe0OpgTNceeylx3uujnpBxOPcCQr+cLwW+WAFw== Completed in 0ms
npm timing metavuln:calculate:security-advisory:nightmare-upload:arIF7J7A4Hn3H3+0cenKv9WJ1C4Cvtw1LU8Ad9Bo6/SqYgAmEe0OpgTNceeylx3uujnpBxOPcCQr+cLwW+WAFw== Completed in 849ms
npm http fetch GET 200 https://registry.npmjs.org/node-red-contrib-nbrowser 873ms (cache revalidated)
npm timing metavuln:packument:node-red-contrib-nbrowser Completed in 875ms
npm timing metavuln:load:security-advisory:node-red-contrib-nbrowser:arIF7J7A4Hn3H3+0cenKv9WJ1C4Cvtw1LU8Ad9Bo6/SqYgAmEe0OpgTNceeylx3uujnpBxOPcCQr+cLwW+WAFw== Completed in 0ms
npm timing metavuln:calculate:security-advisory:node-red-contrib-nbrowser:arIF7J7A4Hn3H3+0cenKv9WJ1C4Cvtw1LU8Ad9Bo6/SqYgAmEe0OpgTNceeylx3uujnpBxOPcCQr+cLwW+WAFw== Completed in 886ms
npm timing metavuln:cache:get:security-advisory:cheerio:T4E2lUfP1nswQFSQppAD0MMq1r2AMfLR2ggfNzT8MLxx52/PiVVxmzRjPAEs+IThDCPdEkRldzsQFpfBR6w3pA== Completed in 3ms
npm http fetch GET 200 https://registry.npmjs.org/cheerio 59ms (cache revalidated)
npm timing metavuln:packument:cheerio Completed in 63ms
npm timing metavuln:load:security-advisory:cheerio:QvKraIGpcyVxEwFP0qxpEFcY9Kx8ThCeiILkMKxPQIjEnGuEnh3anOmKy/kR5kMZzYPfqYeVltD9/X58U3TjZA== Completed in 1ms
npm timing metavuln:calculate:security-advisory:cheerio:QvKraIGpcyVxEwFP0qxpEFcY9Kx8ThCeiILkMKxPQIjEnGuEnh3anOmKy/kR5kMZzYPfqYeVltD9/X58U3TjZA== Completed in 66ms
npm timing metavuln:cache:get:security-advisory:unfluff:LNalB/gCaTShyABBaTVtbec6kOkzr73HE1P5KvmFJiVmo2PNvdmBma8tMhOIFMDkvSBuzl25M7Fh3qxiWHH9qA== Completed in 6ms
npm http fetch GET 200 https://registry.npmjs.org/unfluff 840ms (cache revalidated)
npm timing metavuln:packument:unfluff Completed in 846ms
npm timing metavuln:load:security-advisory:unfluff:o2lE7fUIfwYPar3iqA3kQPQn50grDPspK9dO7+W99ywE5XzwHQesNjU/K2CCdf3cVz9S8M4g3GHIkLLHncYtjw== Completed in 1ms
npm timing metavuln:calculate:security-advisory:unfluff:o2lE7fUIfwYPar3iqA3kQPQn50grDPspK9dO7+W99ywE5XzwHQesNjU/K2CCdf3cVz9S8M4g3GHIkLLHncYtjw== Completed in 853ms
npm timing metavuln:cache:get:security-advisory:node-red-contrib-nbrowser:/erJCC1wiv596kxj01VzVM14dOCXuOviSW3Q6/JYhlroirfrL/cm/HD7N73ke5XQ1h7Ub+Nkd4DOwgvRt4gZug== Completed in 3ms
npm timing metavuln:load:security-advisory:node-red-contrib-nbrowser:lHW+XLaU85N+f94hRHKMN/V5ZHXpmTlIJUIs3PMCQZ/YNGni1OH6h+Bsj90Omu3hePgzpknY/zwNuZVGC33t0A== Completed in 0ms
npm timing metavuln:calculate:security-advisory:node-red-contrib-nbrowser:lHW+XLaU85N+f94hRHKMN/V5ZHXpmTlIJUIs3PMCQZ/YNGni1OH6h+Bsj90Omu3hePgzpknY/zwNuZVGC33t0A== Completed in 12ms
npm timing metavuln:cache:get:security-advisory:unfluff:/93YTiCe1fCW+jtwTYZYz8JdguAV0pZx3J0485Bwdjjzh15uNJctSsSxN1P99jOnjOyAeacbcJuv7GnXJllPsw== Completed in 7ms
npm timing metavuln:load:security-advisory:unfluff:T4E2lUfP1nswQFSQppAD0MMq1r2AMfLR2ggfNzT8MLxx52/PiVVxmzRjPAEs+IThDCPdEkRldzsQFpfBR6w3pA== Completed in 0ms
npm timing metavuln:calculate:security-advisory:unfluff:T4E2lUfP1nswQFSQppAD0MMq1r2AMfLR2ggfNzT8MLxx52/PiVVxmzRjPAEs+IThDCPdEkRldzsQFpfBR6w3pA== Completed in 11ms
npm timing metavuln:cache:get:security-advisory:node-red-contrib-nbrowser:MNrzTV1WyEHQCyrlYYfmT49OdCnYw1eGJ1hEFaAlLG22pIPblz0R8tFl4NxPdVudH7+Z4/27UF1+tQfXczUwoA== Completed in 3ms
npm timing metavuln:load:security-advisory:node-red-contrib-nbrowser:LNalB/gCaTShyABBaTVtbec6kOkzr73HE1P5KvmFJiVmo2PNvdmBma8tMhOIFMDkvSBuzl25M7Fh3qxiWHH9qA== Completed in 0ms
npm timing metavuln:calculate:security-advisory:node-red-contrib-nbrowser:LNalB/gCaTShyABBaTVtbec6kOkzr73HE1P5KvmFJiVmo2PNvdmBma8tMhOIFMDkvSBuzl25M7Fh3qxiWHH9qA== Completed in 5ms
npm timing auditReport:init Completed in 3408ms
npm timing reify:audit Completed in 3781ms
npm timing reify Completed in 5079ms

up to date, audited 272 packages in 6s

29 packages are looking for funding
run npm fund for details

12 vulnerabilities (9 moderate, 3 high)

To address issues that do not require attention, run:
npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
npm timing command:install Completed in 5124ms
npm verb exit 0
npm timing npm Completed in 5732ms
npm info ok

C:\GreenVIP_Testing\Testing\Node-red\Phase0>npm rebuild node-red-node-serialport --loglevel verbose
npm verb cli [
npm verb cli 'C:\Program Files\nodejs\node.exe',
npm verb cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
npm verb cli 'rebuild',
npm verb cli 'node-red-node-serialport',
npm verb cli '--loglevel',
npm verb cli 'verbose'
npm verb cli ]
npm info using npm@8.1.2
npm info using node@v16.13.2
npm timing npm:load:whichnode Completed in 1ms
npm timing config:load:defaults Completed in 1ms
npm timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 3ms
npm timing config:load:builtin Completed in 3ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 1ms
npm timing config:load:file:C:\GreenVIP_Testing\Testing\Node-red\Phase0.npmrc Completed in 0ms
npm timing config:load:project Completed in 1ms
npm timing config:load:file:C:\Users\nxf68958.npmrc Completed in 0ms
npm timing config:load:user Completed in 1ms
npm timing config:load:file:C:\Users\nxf68958\AppData\Roaming\npm\etc\npmrc Completed in 0ms
npm timing config:load:global Completed in 0ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 11ms
npm timing npm:load:configload Completed in 11ms
npm timing npm:load:setTitle Completed in 0ms
npm timing npm:load:setupLog Completed in 1ms
npm timing config:load:flatten Completed in 4ms
npm timing npm:load:cleanupLog Completed in 2ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load:projectScope Completed in 2ms
npm timing npm:load Completed in 106ms
npm timing arborist:ctor Completed in 0ms
npm timing arborist:ctor Completed in 0ms
npm timing build:queue Completed in 3ms
npm timing build:deps Completed in 6ms
npm timing build Completed in 8ms
rebuilt dependencies successfully
npm timing command:rebuild Completed in 225ms
npm verb exit 0
npm timing npm Completed in 850ms
npm info ok

@hardillb
Copy link
Member

Just out of interest, is this Node-RED running in an electron app?

Also try running npm rebuild @serialport/binding in the same directory

@Paosko
Copy link
Author

Paosko commented Jan 21, 2022

The node-red is running up to FreeMaster lite from NXP. [https://www.nxp.com/design/software/development-software/freemaster-run-time-debugging-tool:FREEMASTER]

Unfortunately it does not worked. :-( When I look to the file ->
C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules@serialport\bindings\build\Release\bindings.node
the Date modified is not changed.

C:\GreenVIP_Testing\Testing\Node-red\Phase0>npm rebuild @serialport/bindings -verbose
npm verb cli [
npm verb cli 'C:\Program Files\nodejs\node.exe',
npm verb cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
npm verb cli 'rebuild',
npm verb cli '@serialport/bindings',
npm verb cli '-verbose'
npm verb cli ]
npm info using npm@8.1.2
npm info using node@v16.13.2
npm timing npm:load:whichnode Completed in 0ms
npm timing config:load:defaults Completed in 2ms
npm timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 5ms
npm timing config:load:builtin Completed in 5ms
npm timing config:load:cli Completed in 3ms
npm timing config:load:env Completed in 1ms
npm timing config:load:file:C:\GreenVIP_Testing\Testing\Node-red\Phase0.npmrc Completed in 0ms
npm timing config:load:project Completed in 2ms
npm timing config:load:file:C:\Users\nxf68958.npmrc Completed in 0ms
npm timing config:load:user Completed in 0ms
npm timing config:load:file:C:\Users\nxf68958\AppData\Roaming\npm\etc\npmrc Completed in 1ms
npm timing config:load:global Completed in 1ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 2ms
npm timing config:load Completed in 17ms
npm timing npm:load:configload Completed in 17ms
npm timing npm:load:setTitle Completed in 0ms
npm timing npm:load:setupLog Completed in 0ms
npm timing config:load:flatten Completed in 4ms
npm timing npm:load:cleanupLog Completed in 4ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load:projectScope Completed in 1ms
npm timing npm:load Completed in 79ms
npm timing arborist:ctor Completed in 1ms
npm timing arborist:ctor Completed in 0ms
npm timing build:queue Completed in 3ms
npm info run @serialport/bindings@9.2.8 install node_modules/@serialport/bindings prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm info run @serialport/bindings@9.2.8 install { code: 0, signal: null }
npm timing build:run:install:node_modules/@serialport/bindings Completed in 1198ms
npm timing build:run:install Completed in 1199ms
npm timing build:deps Completed in 1205ms
npm timing build Completed in 1207ms
rebuilt dependencies successfully
npm timing command:rebuild Completed in 1499ms
npm verb exit 0
npm timing npm Completed in 2117ms
npm info ok

@hardillb
Copy link
Member

Can you show me what's in the C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules@serialport\bindings\build\Release\ directory please

@hardillb
Copy link
Member

Also try renaming the bindings.node file (so it's backed up) and running the npm rebuild @serialport/bindings command again please

@Paosko
Copy link
Author

Paosko commented Jan 21, 2022

in this folder is just bindings.node (Date modified) 26.11.2021 5:21PM
Hah I already tried to do -> I renamed the original and when I started npm rebuild to this directory added the original file -> bindings.node which was modified at 26.11.2021 so the same file.

@Paosko
Copy link
Author

Paosko commented Jan 21, 2022

image
Red is the original file which I renamed. And the blue file added after npm rebuild

@Paosko
Copy link
Author

Paosko commented Jan 21, 2022

Now I tried to run npm run rebuild
It added files there also changed the bindings.node but still it write the same error. bindings.node is not WIN 32 app.

image

`C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules@serialport\bindings>npm run rebuild

@serialport/bindings@9.2.8 rebuild
node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@8.3.0
gyp info using node@16.13.2 | win32 | x64
gyp info find Python using Python version 3.10.1 found at "C:\Python310\python.exe"
gyp http GET https://nodejs.org/download/release/v16.13.2/node-v16.13.2-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v16.13.2/node-v16.13.2-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v16.13.2/SHASUMS256.txt
gyp http GET https://nodejs.org/download/release/v16.13.2/win-x86/node.lib
gyp http GET https://nodejs.org/download/release/v16.13.2/win-arm64/node.lib
gyp http GET https://nodejs.org/download/release/v16.13.2/win-x64/node.lib
gyp http 200 https://nodejs.org/download/release/v16.13.2/SHASUMS256.txt
gyp http 404 https://nodejs.org/download/release/v16.13.2/win-arm64/node.lib
gyp http 200 https://nodejs.org/download/release/v16.13.2/win-x86/node.lib
gyp http 200 https://nodejs.org/download/release/v16.13.2/win-x64/node.lib
gyp info find VS using VS2019 (16.11.32106.194) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python310\python.exe
gyp info spawn args [
gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules\@serialport\bindings\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\nxf68958\AppData\Local\node-gyp\Cache\16.13.2\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\nxf68958\AppData\Local\node-gyp\Cache\16.13.2',
gyp info spawn args '-Dnode_gyp_dir=C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\nxf68958\\AppData\\Local\\node-gyp\\Cache\\16.13.2\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules\@serialport\bindings',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules\@serialport\bindings\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
�[37;40mgyp�[0m �[0m�[32minfo�[0m �[0m�[35mspawn�[0m C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
�[0m�[37;40mgyp�[0m �[0m�[32minfo�[0m �[0m�[35mspawn args�[0m [
�[0m�[37;40mgyp�[0m �[0m�[32minfo�[0m �[0m�[35mspawn args�[0m 'build/binding.sln',
�[0m�[37;40mgyp�[0m �[0m�[32minfo�[0m �[0m�[35mspawn args�[0m '/clp:Verbosity=minimal',
�[0m�[37;40mgyp�[0m �[0m�[32minfo�[0m �[0m�[35mspawn args�[0m '/nologo',
�[0m�[37;40mgyp�[0m �[0m�[32minfo�[0m �[0m�[35mspawn args�[0m '/p:Configuration=Release;Platform=x64'
�[0m�[37;40mgyp�[0m �[0m�[32minfo�[0m �[0m�[35mspawn args�[0m ]
�[0mBuilding the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
serialport.cpp
serialport_win.cpp
win_delay_load_hook.cc
Creating library C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules@serialport\bindings\build\Release\bindi
ngs.lib and object C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules@serialport\bindings\build\Release\bindin
gs.exp
Generating code
Previous IPDB not found, fall back to full compilation.
All 476 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
Finished generating code
bindings.vcxproj -> C:\GreenVIP_Testing\Testing\Node-red\Phase0\node_modules@serialport\bindings\build\Release\bind
ings.node
�[37;40mgyp�[0m �[0m�[32minfo�[0m �[0m�[35mok�[0m
�[0m`

@hardillb
Copy link
Member

hardillb commented Jan 21, 2022

OK, I'm at a loss now. I'll have to ask you to open an issue here: https://github.com/serialport/node-serialport as the root of the problem is with this package. You can reference this issue to show what we've already tried.

@Paosko
Copy link
Author

Paosko commented Jan 21, 2022

Okay, I will.
Thank you very much.

@Paosko
Copy link
Author

Paosko commented Jan 21, 2022

Here is created issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants