Skip to content

Commit 75144e7

Browse files
authored
npm install -> npm add (#8022)
1 parent a2c137c commit 75144e7

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

+1-1
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

+2-2
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const handler: EventBridgeHandler<"Scheduled Event", null, void> = async
6767
**Note**: AWS Lambda types can be installed with
6868

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

7373
</Callout>

0 commit comments

Comments
 (0)