ruimarinho / gsts

Obtain and store AWS STS credentials to interact with Amazon services by authenticating via G Suite SAML.
MIT License
222 stars 38 forks source link

Error `Cannot find module ./credentials-manager` #18

Closed ns0092 closed 4 years ago

ns0092 commented 4 years ago

I used yarn to install gsts. However, I get this error:


[root@mbp]# gsts
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module './credentials-manager'
    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> (/usr/sbin/gsts:7:28)
    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)

[root@mbp]#
ruimarinho commented 4 years ago

@nikhils5501 what's your OS?

ns0092 commented 4 years ago

I'm trying to install it on an Amazon Linux EC2

ruimarinho commented 4 years ago

Can you browser to the directory where gsts was installed and paste the output of ls -la here?

ns0092 commented 4 years ago

I was able to get it working with yarn install. npm threw permission errors even when running it as sudo