0

I have downloaded aws-sdk from AWS and copied the folder to nodejs installed directory at below Path:

c:\Program Files\nodejs\node_modules\aws-sdk

we have network restriction at server level to install aws-sdk using command prompt so we cannot use >npm install aws-sdk

When I am trying to execute sample code, I am getting an error stating: cannot find module ;aws-sdk'

Please can anyone help? if any configuration is missing or missed when we manually copy 'aws-sdk' library files to nodejs folder.

Note: I am trying this on Windows OS.

1

1 Answer 1

1

You probably need to add aws-sdk to the "dependencies" section in your package.json file. Like the following:

"dependencies": {
  "aws-sdk": "^2.418.0"
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.