I have written a node js program which contained a method called AWS.config.update()
. When I tried to run it on terminal, I got an error:
Error: Cannot find module 'aws-sdk'
Go to the folder where your node application is installed:
cd location/to/your/folder
And then run this to install the aws-sdk:
npm install aws-sdk
After npm install aws-sdk
be sure that your package.json specifies the exact version of the new dependency, such as:
"dependencies": {
"aws-sdk": "2.4.12",
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With