Cannot find module 'square'
hetkpatel opened this issue · comments
Het Patel commented
I've installed the package through npm with npm i square
but when I try to run it this is what I get:
Error: Cannot find module 'square'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/functions/index.js:13:33)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Stephen Josey commented
Did you receive any errors when running npm install square
?
Het Patel commented
Nope, and I also see the square package folder under the node_modules
folder.
Also tried running it in npm RunKit and got the same error.
Hector Andres Perez Villatoro commented
Having the same problem - so with the 8.0.0 release 'npm link' is not required anymore, right ?
sseaman commented
Please try now. We found an issue in our npm package and it should work for version 8.0.1
Het Patel commented
Works now, thank you!