update npm on windows 7 - node.js

After I use this trick I successfully updated current node version to v16.6.2 on win7x64, but now npm -v throws errors:
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules
\socks-proxy-agent\dist\agent.js:114:44)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules
\socks-proxy-agent\dist\index.js:5:33)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules
\make-fetch-happen\lib\agent.js:161:25)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules
\socks-proxy-agent\dist\agent.js:114:44)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules
\socks-proxy-agent\dist\index.js:5:33)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules
\make-fetch-happen\lib\agent.js:161:25)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
is there way to fix it? And I have not enough reputation ask about it that branch.

I installed nvm, configured system environment variables and update my node version to latest by command nvm install latest

Related

Error wickrio_addon.node is not a valid Win32 application

I've been to trying to get my hands off this by reinstalling node.js but keeps giving me same issues.
Error: \\?\C:\Users\iSel Media\Desktop\wickrio_web_interface-master\node_modules\wickrio_addon\wickrio_addon.node is not a valid Win32 application.
\\?\C:\Users\iSel Media\Desktop\wickrio_web_interface-master\node_modules\wickrio_addon\wickrio_addon.node
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1187:18)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\iSel Media\Desktop\wickrio_web_interface-master\node_modules\wickrio-bot-api\src\WickrIOBot.js:1:20)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
code: 'ERR_DLOPEN_FAILED'
}

How to fix `Cannot find module ./logging/Logger` in Webpack-cli

When i tried webpack build using webpack-cli by jenkins, following error comes up.
I already tried yarn upgrade, global added webpack-cli..
but nothing happens.
Following code is got by jenkins.
/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack-cli/bin/cli.js:93
throw err;
^
Error: Cannot find module './logging/Logger'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack/lib/Stats.js:12:21)
at Module._compile (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack/lib/Compilation.js:30:15)
at Module._compile (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack/lib/Compiler.js:20:21)
at Module._compile (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/var/lib/jenkins/workspace/websdk (develop)/node_modules/webpack/lib/webpack.js:7:18)
at Module._compile (/var/lib/jenkins/workspace/websdk (develop)/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Use npm install webpack in terminal and try

Error: Cannot find module '../build/Release/kerberos' on ubuntu in a nodejs project

Error: Cannot find module '../build/Release/kerberos'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/mnt/c/Repo/firm-datahub-api/node_modules/authenticate-uxtf/node_modules/kerberos/lib/kerberos.js:1:16)
at Module._compile (module.js:653:30)
at Module._compile (/mnt/c/Repo/firm-datahub-api/node_modules/pirates/lib/index.js:83:24)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (/mnt/c/Repo/firm-datahub-api/node_modules/pirates/lib/index.js:88:7)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/mnt/c/Repo/firm-datahub-api/node_modules/authenticate-uxtf/node_modules/kerberos/index.js:2:18)
at Module._compile (module.js:653:30)
at Module._compile (/mnt/c/Repo/firm-datahub-api/node_modules/pirates/lib/index.js:83:24)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (/mnt/c/Repo/firm-datahub-api/node_modules/pirates/lib/index.js:88:7)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
I tried every available solution but getting same result.
I installed, kerberos server, client, workstation, what am I missing?

Node js Watson Speech to text to console Not working

When I started app on windows I get this error:
Error: Module did not self-register.
at Object.Module._extensions..node (module.js:672:18)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\ahmet\node_modules\line-in\index.js:2:20)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
I updated all modules
I updated node
I do everything but still this error

(Node )Error: Module did not self-register

Getting this error while lifting the serve: sails lift
Error: Module did not self-register.
at Error (native)
at Object.Module._extensions..node (module.js:440:18)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)

Resources