2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
0
Hi,
When you run the command, try not to put the "$" symbol in the beginning, as it is generally used to indicate the command is being run in the terminal or command prompt.
The $
is not part of the command itself. It simply represents the command prompt and $
is not meant to be typed.
So, your command should be:
npx aws-sdk-js-codemod@latest -t v2-to-v3 example.ts
For more details regarding upgrading from v2 to v3, you can follow the guide: [1] [2].
References:
[1] https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/migrating-to-v3.html
[2] https://hackernoon.com/notes-on-migrating-aws-sdk-v2-to-v3-javascript-a-quick-guide-to-help-you-out
Thanks,
Atul
respondido hace 7 meses
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 2 años
Hi Atul,
Thanks for replying. I am aware that $ represents a bash prompt and it wasn't included in the command. I also substituted in the correct path for PATH. That said,
npx aws-sdk-js-codemod@latest -t v2-to-v3 PATH...
didn't work, stating command not found.
For the record, I am not trying to use Lambdas, DynamoDB or S3. I am trying to use Cognito and I need instructions for how to perform all the operations detailed in https://www.npmjs.com/package/amazon-cognito-identity-js#usage. I had already read the docs you cite and didn't find them helpful.