Q 2.0.0 "Cannot find module 'collections/shim'"
See original GitHub issueJust 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:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top 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 >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
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.
👍 Thanks for the clarification.