question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'npm' under Win10

See original GitHub issue

I am getting the Error: Cannot find module 'npm' message on Win10 when trying to install a plugin. I can see the list of available plugins, but can’t install any of them.

Things I’ve tried:

  • Installed the latest nightly Win build (1.0.72)
  • Confirmed that npm is in my %PATH%
  • Typing npm commands in a cmd window work just fine.
  • Added npm: 'C:\Program Files\nodejs\npm' to my Terminus config file

No matter what I try, I still get the error when trying to install a plugin. Any ideas?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
felipesntscommented, Jun 5, 2019

Still getting this error on v1.0.79

ERROR Error: Uncaught (in promise): Error: Cannot find module 'npm'
Require stack:
- C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\dist\index.html
Error: Cannot find module 'npm'
Require stack:
- C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\dist\index.html
    at Module._resolveFilename (internal/modules/cjs/loader.js:659)
    at Function.Module._resolveFilename (C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\electron.asar\common\reset-search-paths.js:43)
    at Function.Module._load (internal/modules/cjs/loader.js:577)
    at Module.require (internal/modules/cjs/loader.js:715)
    at require (internal/modules/cjs/helpers.js:14)
    at global.require (plugins.ts?1c45:87)
    at eval (index.js:43)
    at new ZoneAwarePromise (C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\zone.js\dist\zone.js:910)
    at PluginManagerService.eval (index.js:42)
    at Generator.next (<anonymous>)
    at resolvePromise (C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\zone.js\dist\zone.js:831)
    at C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\zone.js\dist\zone.js:741
    at rejected (VM161 5:14)
    at ZoneDelegate.invoke (C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\zone.js\dist\zone.js:391)
    at Object.onInvoke (C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\@angular\core\bundles\core.umd.js:17343)
    at ZoneDelegate.invoke (C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\zone.js\dist\zone.js:390)
    at Zone.run (C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\zone.js\dist\zone.js:150)
    at C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\zone.js\dist\zone.js:889
    at ZoneDelegate.invokeTask (C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\zone.js\dist\zone.js:423)
    at Object.onInvokeTask (C:\Users\tenwi\AppData\Local\Programs\Terminus\resources\app.asar\node_modules\@angular\core\bundles\core.umd.js:17334)
0reactions
Hydragyrumcommented, Mar 11, 2019

Same error with Windows 7 and Terminus 1.0.72

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Nodejs cannot find installed module on Windows
The answer for windows 10 is to set the NODE_PATH in the enviroment variables with C:\Users\User\node_modules. Share.
Read more >
Error Nodejs cannot find installed module on Windows
I am learning nodejs at the moment on Windows. Several modules are installed globally with npm.cmd, and nodejs failed to find the installed ......
Read more >
Error: Cannot find module 'node-windows' #57 - GitHub
This sounds like a path problem with your node/npm install.
Read more >
Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/module ...
Read more >
node-gyp - npm
node -gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. It contains a vendored ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found