I've been attempting to run the lodash library on my computer. You can find the library here on GitHub.
I went ahead and forked the repository, then cloned it onto my system. I successfully installed all dependencies mentioned in the package.json file by running npm install without any issues. However, when I tried running npm run build as instructed on the GitHub page, I encountered the following error:
module.js:549
throw err;
^
Error: Cannot find module '/home/satya/lodash/lib/main/build-dist.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddb1b2b9bcaeb59de9f3eceaf3e9">[email protected]</a> build:main: `node lib/main/build-dist.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="81edeee5e0f2e9c1b5afb0b6afb5">[email protected]</a> build:main script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Does anyone have suggestions on how to fix this error so I can add console logs and continue with my work?