Welcome to the Forum, @engrponle.
I understand that you are under some pressure and may not have time to do a lot of reading. When you can, I suggest looking at this FAQ, which offers some advice on the best way to get help from this group.
Welcome to the Forum, @engrponle.
I understand that you are under some pressure and may not have time to do a lot of reading. When you can, I suggest looking at this FAQ, which offers some advice on the best way to get help from this group.
sorry i was here trying to respond to questions on how this can be resolved but I was restricted because as a new user, there are certain numbers of reply that can be done per day. I'm here now, the problem is still there unresolved. I'm here now can we continue please.
not my fault, i really try all possible best to respond to questions but i was restricted
i have installed visual studio and still the problem persist
Log of installing the NCD node (after installing node 18LTS - with "necessary tools" ticked)
Ps, once more: you do not need to install visual studio, just make sure you install the "necessary tools"
i did install as instructed and checked the box, or should i uninstalled and start all over again
If you installed Node 18 and ticked the box there should be no need to re-re-install
Please retry the NCD install and show us the log.
trying to send the log but i couldn't, it says i can't post more than two links.
Wrap the long log text in a code block as I said last time
Remember to click the
code
</>
button before posting it into a reply
2023-04-12T18:56:23.248Z Install : ncd-red-wireless 1.6.16
2023-04-12T18:56:23.318Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict ncd-red-wireless@1.6.16
2023-04-12T18:56:26.569Z [err] npm
2023-04-12T18:56:26.570Z [err]
2023-04-12T18:56:26.570Z [err] WARN config production Use `--omit=dev` instead.
2023-04-12T18:57:08.494Z [err] npm
2023-04-12T18:57:08.494Z [err] WARN cleanup Failed to remove some directories [
2023-04-12T18:57:08.494Z [err] npm WARN cleanup
2023-04-12T18:57:08.494Z [err] [
2023-04-12T18:57:08.494Z [err] npm WARN cleanup 'C:\\Users\\USER\\.node-red\\node_modules\\i2c-bus',
2023-04-12T18:57:08.494Z [err] npm WARN cleanup
2023-04-12T18:57:08.494Z [err] [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\USER\.node-red\node_modules\i2c-bus'] {
2023-04-12T18:57:08.494Z [err] npm WARN cleanup errno: -4082,
2023-04-12T18:57:08.494Z [err] npm WARN cleanup code: 'EBUSY',
2023-04-12T18:57:08.494Z [err] npm WARN cleanup syscall: 'rmdir',
2023-04-12T18:57:08.494Z [err] npm WARN cleanup
2023-04-12T18:57:08.495Z [err] path: 'C:\\Users\\USER\\.node-red\\node_modules\\i2c-bus'
2023-04-12T18:57:08.495Z [err] npm WARN
2023-04-12T18:57:08.495Z [err] cleanup }
2023-04-12T18:57:08.495Z [err] npm WARN cleanup ]
2023-04-12T18:57:08.495Z [err] npm WARN cleanup ]
2023-04-12T18:57:08.503Z [err] npm
2023-04-12T18:57:08.503Z [err] ERR! code 1
2023-04-12T18:57:08.503Z [err] npm
2023-04-12T18:57:08.503Z [err]
2023-04-12T18:57:08.504Z [err] ERR!
2023-04-12T18:57:08.504Z [err] path C:\Users\USER\.node-red\node_modules\@serialport\bindings
2023-04-12T18:57:08.525Z [err] npm ERR!
2023-04-12T18:57:08.525Z [err] command failed
2023-04-12T18:57:08.525Z [err] npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2023-04-12T18:57:08.525Z [err] npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
2023-04-12T18:57:08.525Z [err] npm ERR!
2023-04-12T18:57:08.525Z [err] npm ERR! serialport.cpp
2023-04-12T18:57:08.525Z [err] npm ERR!
2023-04-12T18:57:08.525Z [err] C:\Users\USER\.node-red\node_modules\@serialport\bindings\src\serialport.cpp(329,12): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\USER\.node-red\node_modules\@serialport\bindings\build\bindings.vcxproj]
2023-04-12T18:57:08.525Z [err] npm ERR! C:\Users\USER\.node-red\node_modules\@serialport\bindings\src\serialport.cpp(329,12): message : while trying to match the argument list '(v8::Local<v8::String>, v8::Local<v8::Boolean>)' [C:\Users\USER\.node-red\node_modules\@serialport\bindings\build\bindings.vcxproj]
2023-04-12T18:57:08.525Z [err] npm ERR!
2023-04-12T18:57:08.525Z [err] C:\Users\USER\.node-red\node_modules\@serialport\bindings\src\serialport.cpp(330,12): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\USER\.node-red\node_modules\@serialport\bindings\build\bindings.vcxproj]
2023-04-12T18:57:08.525Z [err] npm ERR! C:\Users\USER\.node-red\node_modules\@serialport\bindings\src\serialport.cpp(330,12): message : while trying to match the argument list '(v8::Local<v8::String>, v8::Local<v8::Boolean>)' [C:\Users\USER\.node-red\node_modules\@serialport\bindings\build\bindings.vcxproj]
2023-04-12T18:57:08.525Z [err] npm
2023-04-12T18:57:08.525Z [err] ERR! C:\Users\USER\.node-red\node_modules\@serialport\bindings\src\serialport.cpp(331,12): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\USER\.node-red\node_modules\@serialport\bindings\build\bindings.vcxproj]
2023-04-12T18:57:08.525Z [err] npm ERR!
2023-04-12T18:57:08.526Z [err] C:\Users\USER\.node-red\node_modules\@serialport\bindings\src\serialport.cpp(331,12): message : while trying to match the argument list '(v8::Local<v8::String>, v8::Local<v8::Boolean>)' [C:\Users\USER\.node-red\node_modules\@serialport\bindings\build\bindings.vcxproj]
2023-04-12T18:57:08.526Z [err] npm ERR! C:\Users\USER\.node-red\node_modules\@serialport\bindings\src\serialport.cpp(378,12): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\USER\.node-red\node_modules\@serialport\bindings\build\bindings.vcxproj]
2023-04-12T18:57:08.526Z [err] npm
2023-04-12T18:57:08.526Z [err] ERR! C:\Users\USER\.node-red\node_modules\@serialport\bindings\src\serialport.cpp(378,12): message : while trying to match the argument list '(v8::Local<v8::String>, v8::Local<v8::Integer>)' [C:\Users\USER\.node-red\node_modules\@serialport\bindings\build\bindings.vcxproj]
2023-04-12T18:57:08.527Z [err] npm ERR!
2023-04-12T18:57:08.527Z [err] gyp info it worked if it ends with ok
2023-04-12T18:57:08.527Z [err] npm ERR! gyp info using node-gyp@9.3.1
2023-04-12T18:57:08.527Z [err] npm ERR! gyp info using node@18.15.0 | win32 | x64
2023-04-12T18:57:08.527Z [err] npm ERR! gyp info find Python using Python version 3.11.2 found at "C:\Python311\python.exe"
2023-04-12T18:57:08.527Z [err] npm
2023-04-12T18:57:08.527Z [err] ERR! gyp info find VS using VS2022 (17.5.33530.505) found at:
2023-04-12T18:57:08.527Z [err] npm ERR! gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
2023-04-12T18:57:08.527Z [err] npm ERR! gyp info find VS run with --verbose for detailed information
2023-04-12T18:57:08.527Z [err] npm ERR! gyp info spawn C:\Python311\python.exe
2023-04-12T18:57:08.527Z [err] npm ERR! gyp info spawn args [
2023-04-12T18:57:08.527Z [err] npm ERR! gyp info spawn args 'C:\\Users\\USER\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
2023-04-12T18:57:08.527Z [err] npm ERR!
2023-04-12T18:57:08.527Z [err] gyp info spawn args 'binding.gyp',
2023-04-12T18:57:08.527Z [err] npm ERR! gyp info spawn args '-f',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args 'msvs',
2023-04-12T18:57:08.528Z [err] npm
2023-04-12T18:57:08.528Z [err] ERR! gyp info spawn args '-I',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args 'C:\\Users\\USER\\.node-red\\node_modules\\@serialport\\bindings\\build\\config.gypi',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args '-I',
2023-04-12T18:57:08.528Z [err] npm ERR!
2023-04-12T18:57:08.528Z [err] gyp info spawn args 'C:\\Users\\USER\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args '-I',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args 'C:\\Users\\USER\\AppData\\Local\\node-gyp\\Cache\\18.15.0\\include\\node\\common.gypi',
2023-04-12T18:57:08.528Z [err] npm ERR!
2023-04-12T18:57:08.528Z [err] gyp info spawn args '-Dlibrary=shared_library',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args '-Dvisibility=default',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\Users\\USER\\AppData\\Local\\node-gyp\\Cache\\18.15.0',
2023-04-12T18:57:08.528Z [err] npm ERR!
2023-04-12T18:57:08.528Z [err] gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\USER\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\18.15.0\\\\<(target_arch)\\\\node.lib',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\\Users\\USER\\.node-red\\node_modules\\@serialport\\bindings',
2023-04-12T18:57:08.528Z [err] npm
2023-04-12T18:57:08.528Z [err] ERR! gyp info spawn args '-Dnode_engine=v8',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args '--depth=.',
2023-04-12T18:57:08.528Z [err] npm
2023-04-12T18:57:08.528Z [err] ERR!
2023-04-12T18:57:08.528Z [err] gyp info spawn args '--no-parallel',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args '--generator-output',
2023-04-12T18:57:08.528Z [err] npm ERR! gyp info spawn args 'C:\\Users\\USER\\.node-red\\node_modules\\@serialport\\bindings\\build',
2023-04-12T18:57:08.528Z [err] npm ERR!
2023-04-12T18:57:08.529Z [err] gyp info spawn args '-Goutput_dir=.'
2023-04-12T18:57:08.529Z [err] npm ERR! gyp info spawn args ]
2023-04-12T18:57:08.529Z [err] npm
2023-04-12T18:57:08.529Z [err] ERR! gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe
2023-04-12T18:57:08.529Z [err] npm ERR! gyp info spawn args [
2023-04-12T18:57:08.529Z [err] npm ERR! gyp info spawn args 'build/binding.sln',
2023-04-12T18:57:08.529Z [err] npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
2023-04-12T18:57:08.529Z [err] npm ERR! gyp info spawn args '/nologo',
2023-04-12T18:57:08.529Z [err] npm ERR!
2023-04-12T18:57:08.529Z [err] gyp info spawn args '/p:Configuration=Release;Platform=x64'
2023-04-12T18:57:08.529Z [err] npm ERR! gyp info spawn args ]
2023-04-12T18:57:08.529Z [err] npm
2023-04-12T18:57:08.529Z [err] ERR! gyp ERR! build error
2023-04-12T18:57:08.529Z [err] npm ERR! gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
2023-04-12T18:57:08.529Z [err] npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Users\USER\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:203:23)
2023-04-12T18:57:08.529Z [err] npm ERR!
2023-04-12T18:57:08.529Z [err] gyp ERR! stack at ChildProcess.emit (node:events:513:28)
2023-04-12T18:57:08.529Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
2023-04-12T18:57:08.529Z [err] npm
2023-04-12T18:57:08.529Z [err] ERR! gyp ERR! System Windows_NT 10.0.19044
2023-04-12T18:57:08.529Z [err] npm ERR!
2023-04-12T18:57:08.529Z [err] gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\USER\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
2023-04-12T18:57:08.529Z [err] npm ERR! gyp ERR! cwd C:\Users\USER\.node-red\node_modules\@serialport\bindings
2023-04-12T18:57:08.529Z [err] npm
2023-04-12T18:57:08.529Z [err] ERR! gyp ERR! node -v v18.15.0
2023-04-12T18:57:08.529Z [err] npm ERR!
2023-04-12T18:57:08.529Z [err] gyp ERR! node-gyp -v v9.3.1
2023-04-12T18:57:08.529Z [err] npm ERR! gyp ERR! not ok
2023-04-12T18:57:08.534Z [err]
2023-04-12T18:57:08.534Z [err] npm ERR! A complete log of this run can be found in: C:\Users\USER\AppData\Local\npm-cache\_logs\2023-04-12T18_56_26_525Z-debug-0.log
2023-04-12T18:57:08.569Z rc=1
Admin edit. I wrapped the log in a code block
that's it
In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```
)
```
code goes here
```
You can edit and correct your post by clicking the pencil icon.
See this post for more details - How to share code or flow json
Error: EBUSY: resource busy or locked, rmdir 'C:\Users\USER\.node-red\node_modules\i2c-bus
At the beginning of the process, there is this
Try cleaning up manually (delete that folder) and try again
Tbh, things are quite the mess right now.
I would be tempted to uninstall visual studio, uninstall node.js, delete the node_modules folder from your .node-red
directory, install node.js 18 LTS (with necessary tools), run npm i
inside your .node-red
folder.
okay i will do that immediately then start all over again ,
once done with the uninstalled I will text back immediately, thanks for your help
Did you see the issue I linked to right at the start? Will not install with nodejs v18 Ā· Issue #26 Ā· ncd-io/ncd-red-wireless Ā· GitHub
yeah i did, it was node js v19 so i downgraded to v18 but the problem persist after doing so.
The issue I linked to is that it won't install with 18! That is on Ubuntu, but I will be surprised if it installs on Windows.
I have just tried with nodejs 16 (on Ubuntu) and it won't install with that version either. In fact it doesn't install with nodejs 14 either, so perhaps it is not the nodejs version that is the problem.
so what could be the problem and are you able to use install it or is their any other plugins that can be used