Skip to content

Commit 100f522

Browse files
committed
npm install -> npm add
1 parent 58be951 commit 100f522

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/pages/[platform]/build-a-backend/auth/advanced-workflows/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ import {
396396
} from 'aws-amplify/auth';
397397

398398
// Note: This example requires installing `@aws-sdk/client-cognito-identity` to obtain Cognito credentials
399-
// npm i @aws-sdk/client-cognito-identity
399+
// npm add @aws-sdk/client-cognito-identity
400400
import { CognitoIdentity } from '@aws-sdk/client-cognito-identity';
401401

402402
// You can make use of the sdk to get identityId and credentials

src/pages/[platform]/build-a-backend/data/optimistic-ui/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ For more on Amplify Data, see the [API documentation](/[platform]/build-a-backen
4343
To get started, run the following command in an existing Amplify project with a React frontend:
4444

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

5050
Modify your Data schema to use this "Real Estate Property" example:

src/pages/[platform]/build-a-backend/functions/scheduling-functions/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const handler: EventBridgeHandler<"Scheduled Event", null, void> = async
6161
**Note**: AWS Lambda types can be installed with
6262

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

6767
</Callout>

0 commit comments

Comments
 (0)