square / square-nodejs-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module 'square'

hetkpatel opened this issue · comments

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)

Did you receive any errors when running npm install square?

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.

Having the same problem - so with the 8.0.0 release 'npm link' is not required anymore, right ?

Please try now. We found an issue in our npm package and it should work for version 8.0.1

Works now, thank you!