Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browserify tries to find module on a bad path

I'm trying to make a browser-side Imgur module, but the imgur module on NPM has some problems with requiring another module.

Error: Cannot find module './C:/Users/*******/AppData/Local/Yarn/config/global/node_modules/is-buffer/index.js' from 'D:\Projects\********\node_modules\http-signature\lib'

As you can see, it's trying to get a module from ./C:/..., but since there's no C: directory in the CWD, it can't find anything.

Is it possible to fix this?

like image 660
skiilaa Avatar asked Mar 01 '18 15:03

skiilaa


1 Answers

People have reported a similar problem in this bug, which you may be caught in.

Fortunately it was fixed very recently. Run npm update to grab the Browserify dependency [email protected] or later, which should contain the fix.

like image 130
Litty Avatar answered Nov 08 '22 18:11

Litty