Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'collections/shim' #33

Open
kohlerm opened this issue Oct 2, 2017 · 1 comment
Open

Error: Cannot find module 'collections/shim' #33

kohlerm opened this issue Oct 2, 2017 · 1 comment

Comments

@kohlerm
Copy link

kohlerm commented Oct 2, 2017

Installation seems to go fine, but when running next-updater I get
module.js:471
throw err;
^

Error: Cannot find module 'collections/shim'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/lib/node_modules/next-updater/node_modules/q/q.js:43:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

node --version
v6.11.3

 npm --version
5.4.2

(updated npm, when getting the error, but did not make a difference)

@prantlf
Copy link

prantlf commented Apr 27, 2018

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 by npm. Although it is not used directly from next-updater, some other module requires it and the installed version does not fit.

Workaround: clone this repository, build the project and use the tool from its source directory:

git clone https://github.com/bahmutov/next-updater
cd next-updater
npm i
npm i collections
node index.js ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants