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.

Q 2.0.0 "Cannot find module 'collections/shim'"

See original GitHub issue

Just started seeing this issue when I do a clean installation of my app (which is using Q 2.0.0):

module.js:340

    throw err;
          ^
Error: Cannot find module 'collections/shim'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/ubuntu/scratch/overview/api/node_modules/q/q.js:43:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

My package.json has q in the dependencies section:

… “q”: “2.0.0” …

And when I did npm install, I had no errors.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kriskowalcommented, Jul 3, 2015

Oh, problem is that you’ve pinned to the 2.0.0 exact version. This problem does not exist in version 2.0.3 since the collections dependency has been removed.

0reactions
AStokercommented, Aug 17, 2017

👍 Thanks for the clarification.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module 'collections/shim' · Issue #33 - GitHub
This appears not to depend on the Node.js version. The file "shim" in the module collections@2 is missing, when the module is installed...
Read more >
How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >
Solved: Cannot find module react : npm install - YouTube
Solved: Cannot find module react : npm install. 59K views 3 years ago React · CodeDocu Developer C# Asp Net Angular.
Read more >
q @ 2.0.2 .. 2.0.3 - Package Diff
Visual diff of the npm package 'q' comparing 2.0.2 with 2.0.3. ... And the fulfillment handler (although nonsensically missing) is.
Read more >
q in Javascript - EzDevinfo.com
I am having trouble passing all arguments. My promise callback only receives one instead of three: var asyncFunction= function(resolve) { setTimeout(function() ...
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