Error when installing node-red-node-serialport on windows

 npm i node-red-node-serialport

I am using windows to run Node Red.
node --version 
v14.15.1
npm --version
6.14.9

The following error was thrown 
find VS
configure error
stack

Hi & welcome.

You need to install build tools.

npm install --global windows-build-tools

then try again.

1 Like

It wrote npm WARN deprecated. Will it be a problem in the future when there is an update?

what part wrote "npm WARN deprecated"?

Anyhow, regardless of the warning, does it now work? Please feedback for future readers with same issue.

1 Like

It works as expected. Thanks. But what is the theory behind it?

Some nodejs modules need to compile native code to work on specific OS/hardware. Serialport is one of those.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.