Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install -> npm add #8022

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ import {
} from 'aws-amplify/auth';

// Note: This example requires installing `@aws-sdk/client-cognito-identity` to obtain Cognito credentials
// npm i @aws-sdk/client-cognito-identity
// npm add @aws-sdk/client-cognito-identity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why npm add?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's an alias of install, but this was changed for consistency with the other pages and it translates well to other package managers

aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall

import { CognitoIdentity } from '@aws-sdk/client-cognito-identity';

// You can make use of the sdk to get identityId and credentials
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ For more on Amplify Data, see the [API documentation](/[platform]/build-a-backen
To get started, run the following command in an existing Amplify project with a React frontend:

```bash title="Terminal" showLineNumbers={false}
# Install TanStack Query
npm i @tanstack/react-query @tanstack/react-query-devtools
npm add @tanstack/react-query && \
npm add --save-dev @tanstack/react-query-devtools
```

Modify your Data schema to use this "Real Estate Property" example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const handler: EventBridgeHandler<"Scheduled Event", null, void> = async
**Note**: AWS Lambda types can be installed with

```bash title="Terminal" showLineNumbers={false}
npm install --save-dev @types/aws-lambda
npm add --save-dev @types/aws-lambda
```

</Callout>
Expand Down