Bower 1.8.3 cannot find module 'q'

139 Views Asked by At

I recently updated bower via npm i -g bower and it pulled latest version of 1.8.3.

Now running bower i immediately fails with:

module.js:538
    throw err;
    ^

Error: Cannot find module 'q'

FYI: Workaround is explicitly install 1.8.2 via npm i -g [email protected]

1

There are 1 best solutions below

0
Josh On

Not that this solves the exact problem, but if you look on the Bower package:

This package has been deprecated Author message:

...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/

They recommend you use a package called Yarn