Cannot find module 'internal/linkedlist'
See original GitHub issueHeyo, 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:
- Created 8 years ago
- Reactions:38
- Comments:21 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe try with
node --expose-internals script.js
.I hit this today using node v7.7.2 and I’m using babel-node so --expose-internals doesn’t work for me