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 'internal/linkedlist'

See original GitHub issue

Heyo, I just wanted to play around with this to see how it works. Apparently I don’t get it to work. 😦

I’ve got a simple index.js.

var log = require('why-is-node-running') // should be your first require

log();

And why-is-node-running is available installed in my node_modules.

That’s what I got:

stefan @ stefan-mac: ~/Downloads/test
> node --version
v5.0.0

stefan @ stefan-mac: ~/Downloads/test
> node ./index.js
module.js:339
    throw err;
    ^

Error: Cannot find module 'internal/linkedlist'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at timers.js:4:11
    at NativeModule.compile (/Users/stefan/Downloads/test/node_modules/why-is-node-running/core.js:108:3)
    at Function.NativeModule.require (/Users/stefan/Downloads/test/node_modules/why-is-node-running/core.js:52:16)
    at Object.globalTimeouts (/Users/stefan/Downloads/test/node_modules/why-is-node-running/core.js:14:31)
    at Object.<anonymous> (/Users/stefan/Downloads/test/node_modules/why-is-node-running/index.js:50:6)
    at Module._compile (module.js:425:26)
FAIL: 1

Thanks.

Any hints are more than welcome. :bowtie:

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:38
  • Comments:21 (3 by maintainers)

github_iconTop GitHub Comments

20reactions
silverwindcommented, Feb 28, 2016

Maybe try with node --expose-internals script.js.

6reactions
mocommented, Jul 10, 2017

I hit this today using node v7.7.2 and I’m using babel-node so --expose-internals doesn’t work for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module 'internal/linkedlist' in WebStorm
I have a script that runs fine when I run it in terminal with node, but using WebStorm I can't properly run it...
Read more >
Cannot find module 'internal/modules/cjs/loader.js' | bobbyhadz
The first thing you need to check is that you run the node command pointed to a file that exists. For example, if...
Read more >
linked-list - npm
Returns the items of the list as an array. This does not detach the items. Note: List also implements an iterator. That means...
Read more >
Linked List Data Structure - GeeksforGeeks
A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
Why the "Error: cannot find module" Occurs · you're trying to import an item from a module you don't have installed in your...
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