Can't update modules: npm ERR! Cannot read property 'extraneous' of undefined

When you have found an alternative to that recommended in the node red docs for installing on Windows do let us know so the docs can be improved.

Probably there is no other way, or maybe I've to uninstall all and retry from zero, this is really sad. I can't install the telegrambot, there are lot of issues. But I dont rant to waste 3GB space of my disk installing SDK I don't need. There should be a way to run few KB of code without all that garbage..
I've installed latest Visual studio and I don't know why it dowsn't recognize it.


-----------------------------------------------------------
2021-04-12T10:24:26.632Z Install : node-red-contrib-telegrambot 9.2.1

2021-04-12T10:24:31.058Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-telegrambot@9.2.1
2021-04-12T10:25:22.173Z [err] npm
2021-04-12T10:25:22.174Z [err]  
2021-04-12T10:25:22.177Z [err] WARN
2021-04-12T10:25:22.178Z [err]  
2021-04-12T10:25:22.179Z [err] deprecated
2021-04-12T10:25:22.180Z [err]  @types/p-retry@3.0.1: This is a stub types definition. p-retry provides its own type definitions, so you do not need this installed.
2021-04-12T10:25:22.212Z [err] npm
2021-04-12T10:25:22.261Z [err]  
2021-04-12T10:25:22.262Z [err] WARN
2021-04-12T10:25:22.262Z [err]  
2021-04-12T10:25:22.262Z [err] deprecated @types/p-cancelable@1.0.1: This is a stub types definition. p-cancelable provides its own type definitions, so you do not need this installed.
2021-04-12T10:25:22.266Z [err] npm
2021-04-12T10:25:22.266Z [err]  
2021-04-12T10:25:22.267Z [err] WARN
2021-04-12T10:25:22.267Z [err]  
2021-04-12T10:25:22.267Z [err] deprecated
2021-04-12T10:25:22.267Z [err]  @types/form-data@2.5.0: This is a stub types definition. form-data provides its own type definitions, so you do not need this installed.
2021-04-12T10:25:25.834Z [err] npm
2021-04-12T10:25:25.834Z [err]  WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
2021-04-12T10:25:25.925Z [err] npm 
2021-04-12T10:25:25.925Z [err] WARN deprecated har-validator@5.1.5: this library is no longer supported
2021-04-12T10:25:26.962Z [err] npm 
2021-04-12T10:25:26.962Z [err] WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
2021-04-12T10:25:27.576Z [err] npm 
2021-04-12T10:25:27.576Z [err] WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
2021-04-12T10:25:29.467Z [err] npm
2021-04-12T10:25:29.467Z [err]  WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
2021-04-12T10:25:30.138Z [err] npm
2021-04-12T10:25:30.139Z [err]  
2021-04-12T10:25:30.139Z [err] WARN
2021-04-12T10:25:30.139Z [err]  deprecated
2021-04-12T10:25:30.139Z [err]  chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
2021-04-12T10:25:33.258Z [err] npm
2021-04-12T10:25:33.297Z [err]  
2021-04-12T10:25:33.297Z [err] WARN
2021-04-12T10:25:33.297Z [err]  
2021-04-12T10:25:33.297Z [err] deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2021-04-12T10:25:35.044Z [err] npm
2021-04-12T10:25:35.045Z [err]  
2021-04-12T10:25:35.045Z [err] WARN
2021-04-12T10:25:35.045Z [err]  
2021-04-12T10:25:35.045Z [err] deprecated
2021-04-12T10:25:35.045Z [err]  node-pre-gyp@0.16.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
2021-04-12T10:25:35.132Z [err] npm
2021-04-12T10:25:35.132Z [err]  WARN
2021-04-12T10:25:35.133Z [err]  deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
2021-04-12T10:25:36.066Z [err] npm
2021-04-12T10:25:36.066Z [err]  
2021-04-12T10:25:36.066Z [err] WARN
2021-04-12T10:25:36.066Z [err]  
2021-04-12T10:25:36.066Z [err] deprecated
2021-04-12T10:25:36.067Z [err]  axios@0.18.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
2021-04-12T10:25:54.364Z [err] npm
2021-04-12T10:25:54.364Z [err]  WARN
2021-04-12T10:25:54.364Z [err]  deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
2021-04-12T10:26:53.271Z [err] npm 
2021-04-12T10:26:53.271Z [err] ERR! code 1
2021-04-12T10:26:53.271Z [err] npm ERR! path C:\Users\Admin\.node-red\node_modules\sqlite3
2021-04-12T10:26:53.278Z [err] npm
2021-04-12T10:26:53.279Z [err]  
2021-04-12T10:26:53.279Z [err] ERR!
2021-04-12T10:26:53.279Z [err]  command failed
2021-04-12T10:26:53.279Z [err] npm
2021-04-12T10:26:53.279Z [err]  
2021-04-12T10:26:53.280Z [err] ERR!
2021-04-12T10:26:53.280Z [err]  
2021-04-12T10:26:53.280Z [err] command
2021-04-12T10:26:53.280Z [err]  C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
2021-04-12T10:26:53.280Z [err] npm
2021-04-12T10:26:53.281Z [err]  
2021-04-12T10:26:53.281Z [err] ERR!
2021-04-12T10:26:53.281Z [err]  Failed to execute 'C:\Program Files\lavoro\nodejs\node.exe C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Admin\.node-red\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Admin\.node-red\node_modules\sqlite3\lib\binding\node-v83-win32-x64 --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
2021-04-12T10:26:53.281Z [err] npm
2021-04-12T10:26:53.281Z [err]  
2021-04-12T10:26:53.282Z [err] ERR!
2021-04-12T10:26:53.282Z [err]  node-pre-gyp info it worked if it ends with ok
2021-04-12T10:26:53.282Z [err] npm
2021-04-12T10:26:53.282Z [err]  
2021-04-12T10:26:53.282Z [err] ERR!
2021-04-12T10:26:53.282Z [err]  node-pre-gyp info using node-pre-gyp@0.11.0
2021-04-12T10:26:53.282Z [err] npm 
2021-04-12T10:26:53.283Z [err] ERR! node-pre-gyp info using node@14.4.0 | win32 | x64
2021-04-12T10:26:53.283Z [err] npm ERR!
2021-04-12T10:26:53.283Z [err]  node-pre-gyp WARN Using request for node-pre-gyp https download 
2021-04-12T10:26:53.283Z [err] npm ERR! node-pre-gyp info check checked for "C:\Users\Admin\.node-red\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node" (not found)
2021-04-12T10:26:53.283Z [err] npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v83-win32-x64.tar.gz
2021-04-12T10:26:53.283Z [err] npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v83-win32-x64.tar.gz
2021-04-12T10:26:53.283Z [err] npm ERR! node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v83-win32-x64.tar.gz 
2021-04-12T10:26:53.283Z [err] npm ERR! node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@14.4.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) 
2021-04-12T10:26:53.283Z [err] npm
2021-04-12T10:26:53.283Z [err]  
2021-04-12T10:26:53.283Z [err] ERR!
2021-04-12T10:26:53.283Z [err]  node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v83-win32-x64.tar.gz 
2021-04-12T10:26:53.283Z [err] npm
2021-04-12T10:26:53.283Z [err]  ERR! gyp info it worked if it ends with ok
2021-04-12T10:26:53.283Z [err] npm ERR! gyp info using node-gyp@7.1.2
2021-04-12T10:26:53.283Z [err] npm ERR!
2021-04-12T10:26:53.283Z [err]  gyp info using node@14.4.0 | win32 | x64
2021-04-12T10:26:53.283Z [err] npm ERR! gyp info ok 
2021-04-12T10:26:53.283Z [err] npm 
2021-04-12T10:26:53.284Z [err] ERR! gyp info it worked if it ends with ok
2021-04-12T10:26:53.284Z [err] npm ERR! gyp info using node-gyp@7.1.2
2021-04-12T10:26:53.284Z [err] npm
2021-04-12T10:26:53.284Z [err]  ERR! gyp info using node@14.4.0 | win32 | x64
2021-04-12T10:26:53.284Z [err] npm ERR! gyp info find Python using Python version 3.9.4 found at "C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe"
2021-04-12T10:26:53.284Z [err] npm ERR! gyp ERR! find VS 
2021-04-12T10:26:53.284Z [err] npm ERR!
2021-04-12T10:26:53.284Z [err]  gyp ERR! find VS msvs_version not set from command line or npm config
2021-04-12T10:26:53.284Z [err] npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
2021-04-12T10:26:53.284Z [err] npm ERR!
2021-04-12T10:26:53.284Z [err]  gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
2021-04-12T10:26:53.284Z [err] npm ERR!
2021-04-12T10:26:53.284Z [err]  gyp ERR! find VS looking for Visual Studio 2015
2021-04-12T10:26:53.284Z [err] npm ERR! gyp ERR! find VS - not found
2021-04-12T10:26:53.284Z [err] npm ERR!
2021-04-12T10:26:53.284Z [err]  gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
2021-04-12T10:26:53.284Z [err] npm ERR! gyp ERR! find VS 
2021-04-12T10:26:53.284Z [err] npm ERR!
2021-04-12T10:26:53.285Z [err]  gyp ERR! find VS **************************************************************
2021-04-12T10:26:53.285Z [err] npm
2021-04-12T10:26:53.285Z [err]  ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
2021-04-12T10:26:53.285Z [err] npm ERR!
2021-04-12T10:26:53.285Z [err]  gyp ERR! find VS including the "Desktop development with C++" workload.
2021-04-12T10:26:53.285Z [err] npm ERR! gyp ERR! find VS For more information consult the documentation at:
2021-04-12T10:26:53.285Z [err] npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
2021-04-12T10:26:53.285Z [err] npm ERR!
2021-04-12T10:26:53.285Z [err]  gyp ERR! find VS **************************************************************
2021-04-12T10:26:53.285Z [err] npm ERR! gyp ERR! find VS 
2021-04-12T10:26:53.285Z [err] npm
2021-04-12T10:26:53.285Z [err]  ERR! gyp ERR! configure error 
2021-04-12T10:26:53.285Z [err] npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
2021-04-12T10:26:53.285Z [err] npm 
2021-04-12T10:26:53.285Z [err] ERR! gyp ERR! stack     at VisualStudioFinder.fail (C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
2021-04-12T10:26:53.285Z [err] npm ERR! gyp ERR! stack     at C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
2021-04-12T10:26:53.285Z [err] npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
2021-04-12T10:26:53.285Z [err] npm ERR!
2021-04-12T10:26:53.285Z [err]  gyp ERR! stack     at C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
2021-04-12T10:26:53.285Z [err] npm ERR!
2021-04-12T10:26:53.285Z [err]  gyp ERR! stack     at C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
2021-04-12T10:26:53.285Z [err] npm ERR! gyp ERR! stack     at C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
2021-04-12T10:26:53.285Z [err] npm ERR! gyp ERR! stack     at C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
2021-04-12T10:26:53.285Z [err] npm ERR! gyp ERR! stack     at ChildProcess.exithandler (child_process.js:310:5)
2021-04-12T10:26:53.286Z [err] npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
2021-04-12T10:26:53.286Z [err] npm ERR!
2021-04-12T10:26:53.286Z [err]  gyp ERR! stack     at maybeClose (internal/child_process.js:1051:16)
2021-04-12T10:26:53.286Z [err] npm ERR! gyp ERR! System Windows_NT 10.0.18363
2021-04-12T10:26:53.286Z [err] npm ERR!
2021-04-12T10:26:53.286Z [err]  gyp ERR! command "C:\\Program Files\\lavoro\\nodejs\\node.exe" "C:\\Users\\Admin\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Admin\\.node-red\\node_modules\\sqlite3\\lib\\binding\\node-v83-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\Admin\\.node-red\\node_modules\\sqlite3\\lib\\binding\\node-v83-win32-x64" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
2021-04-12T10:26:53.286Z [err] npm ERR! gyp ERR! cwd C:\Users\Admin\.node-red\node_modules\sqlite3
2021-04-12T10:26:53.286Z [err] npm 
2021-04-12T10:26:53.286Z [err] ERR! gyp ERR! node -v v14.4.0
2021-04-12T10:26:53.286Z [err] npm ERR! gyp ERR! node-gyp -v v7.1.2
2021-04-12T10:26:53.286Z [err] npm
2021-04-12T10:26:53.286Z [err]  ERR! gyp ERR! not ok 
2021-04-12T10:26:53.286Z [err] npm ERR! node-pre-gyp ERR! build error 
2021-04-12T10:26:53.286Z [err] npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\lavoro\nodejs\node.exe C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Admin\.node-red\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Admin\.node-red\node_modules\sqlite3\lib\binding\node-v83-win32-x64 --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
2021-04-12T10:26:53.286Z [err] npm ERR!
2021-04-12T10:26:53.286Z [err]  node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Admin\.node-red\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
2021-04-12T10:26:53.286Z [err] npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
2021-04-12T10:26:53.286Z [err] npm 
2021-04-12T10:26:53.286Z [err] ERR! node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1051:16)
2021-04-12T10:26:53.286Z [err] npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
2021-04-12T10:26:53.286Z [err] npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.18363
2021-04-12T10:26:53.286Z [err] npm ERR!
2021-04-12T10:26:53.286Z [err]  node-pre-gyp ERR! command "C:\\Program Files\\lavoro\\nodejs\\node.exe" "C:\\Users\\Admin\\.node-red\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
2021-04-12T10:26:53.286Z [err] npm ERR! node-pre-gyp ERR! cwd C:\Users\Admin\.node-red\node_modules\sqlite3
2021-04-12T10:26:53.286Z [err] npm 
2021-04-12T10:26:53.286Z [err] ERR! node-pre-gyp ERR! node -v v14.4.0
2021-04-12T10:26:53.286Z [err] npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0
2021-04-12T10:26:53.286Z [err] npm 
2021-04-12T10:26:53.286Z [err] ERR! node-pre-gyp ERR! not ok
2021-04-12T10:26:53.358Z [err] 
2021-04-12T10:26:53.358Z [err] npm 
2021-04-12T10:26:53.358Z [err] ERR! A complete log of this run can be found in:
2021-04-12T10:26:53.358Z [err] npm ERR!     C:\Users\Admin\AppData\Local\npm-cache\_logs\2021-04-12T10_26_53_341Z-debug.log

You could install the build tools, install the nodes you need, then uninstall the build tools again. You would just have to remember to re-install each time you want to upgrade any of them or upgrade the nodejs version.

I got, but I've a question, why when I've installed the first time Node red and all those modules that Visual studio was not requested?
Can I remove everything, install from zero and cross my fingers that it will not be requested? What for it has now been needed?
Thanks for explanations

Many nodes do not have a build step so build tools are often not required.

There is another possible solution, which is to ditch Windows and install something like Ubuntu. The build tools for linux take up a much smaller amount of space.

Thanks all for your help, today I've decided to uninstall pythin and node.js, also I've clieaned manually all npm folders in appdata, and .node-red folder in the root of users.
I've installed them all and then Node red, I've installed the previous modules with palette and I copied the previous flows. All works fine and without installing tons of SDK :slight_smile: thanks God!

1 Like

Are you saying that you have installed the telegram node successfully?

yes, it installed, all modules I used before installed sucesfully. Was just necessary to reboot PC to let npm be available on %PATH%

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