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

Update pnpm create next-app for latest pnpm 6 and 7 #37254

Merged
merged 2 commits into from
May 27, 2022
Merged
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
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ npx create-next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
# or
yarn create next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
# or
pnpm create next-app -- --example DIRECTORY_NAME DIRECTORY_NAME-app
pnpm create next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/create-next-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ npx create-next-app@latest --ts
# or
yarn create next-app --typescript
# or
pnpm create next-app -- --ts
pnpm create next-app --ts
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion docs/basic-features/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ npx create-next-app@latest --ts
# or
yarn create next-app --typescript
# or
pnpm create next-app -- --ts
pnpm create next-app --ts
```

## Existing projects
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ If you want to start with a TypeScript project you can use the `--typescript` fl
npx create-next-app@latest --typescript
# or
yarn create next-app --typescript
# or (the extra '--' is expected and tells pnpm to pass the args down)
pnpm create next-app -- --typescript
# or
pnpm create next-app --typescript
```

After the installation is complete:
Expand Down
2 changes: 1 addition & 1 deletion examples/active-class-name/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example active-class-name active-class-name-app
# or
yarn create next-app --example active-class-name active-class-name-app
# or
pnpm create next-app -- --example active-class-name active-class-name-app
pnpm create next-app --example active-class-name active-class-name-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/amp-first/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npx create-next-app --example amp-first amp-first-app
# or
yarn create next-app --example amp-first amp-first-app
# or
pnpm create next-app -- --example amp-first amp-first-app
pnpm create next-app --example amp-first amp-first-app
```

Open [http://localhost:3000](http://localhost:3000) to view it in the browser. The page will reload if you make edits. You will also see AMP validation errors in the console.
Expand Down
2 changes: 1 addition & 1 deletion examples/amp-story/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example amp-story amp-story-app
# or
yarn create next-app --example amp-story amp-story-app
# or
pnpm create next-app -- --example amp-story amp-story-app
pnpm create next-app --example amp-story amp-story-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/amp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example amp amp-app
# or
yarn create next-app --example amp amp-app
# or
pnpm create next-app -- --example amp amp-app
pnpm create next-app --example amp amp-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/analyze-bundles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example analyze-bundles analyze-bundles-app
# or
yarn create next-app --example analyze-bundles analyze-bundles-app
# or
pnpm create next-app -- --example analyze-bundles analyze-bundles-app
pnpm create next-app --example analyze-bundles analyze-bundles-app
```

### Analyze webpack output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npx create-next-app --example api-routes-apollo-server-and-client-auth api-route
# or
yarn create next-app --example api-routes-apollo-server-and-client-auth api-routes-apollo-server-and-client-auth-app
# or
pnpm create next-app -- --example api-routes-apollo-server-and-client-auth api-routes-apollo-server-and-client-auth-app
pnpm create next-app --example api-routes-apollo-server-and-client-auth api-routes-apollo-server-and-client-auth-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/api-routes-apollo-server-and-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npx create-next-app --example api-routes-apollo-server-and-client api-routes-apo
# or
yarn create next-app --example api-routes-apollo-server-and-client api-routes-apollo-server-and-client-app
# or
pnpm create next-app -- --example api-routes-apollo-server-and-client api-routes-apollo-server-and-client-app
pnpm create next-app --example api-routes-apollo-server-and-client api-routes-apollo-server-and-client-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/api-routes-apollo-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example api-routes-apollo-server api-routes-apollo-server-
# or
yarn create next-app --example api-routes-apollo-server api-routes-apollo-server-app
# or
pnpm create next-app -- --example api-routes-apollo-server api-routes-apollo-server-app
pnpm create next-app --example api-routes-apollo-server api-routes-apollo-server-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-cors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npx create-next-app --example api-routes-cors api-routes-cors-app
# or
yarn create next-app --example api-routes-cors api-routes-cors-app
# or
pnpm create next-app -- --example api-routes-cors api-routes-cors-app
pnpm create next-app --example api-routes-cors api-routes-cors-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/api-routes-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ npx create-next-app --example api-routes-graphql api-routes-graphql-app
# or
yarn create next-app --example api-routes-graphql api-routes-graphql-app
# or
pnpm create next-app -- --example api-routes-graphql api-routes-graphql-app
pnpm create next-app --example api-routes-graphql api-routes-graphql-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/api-routes-middleware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example api-routes-middleware api-routes-middleware-app
# or
yarn create next-app --example api-routes-middleware api-routes-middleware-app
# or
pnpm create next-app -- --example api-routes-middleware api-routes-middleware-app
pnpm create next-app --example api-routes-middleware api-routes-middleware-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/api-routes-rate-limit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ npx create-next-app --example api-routes-rate-limit api-routes-rate-limit-app
# or
yarn create next-app --example api-routes-rate-limit api-routes-rate-limit-app
# or
pnpm create next-app -- --example api-routes-rate-limit api-routes-rate-limit-app
pnpm create next-app --example api-routes-rate-limit api-routes-rate-limit-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/api-routes-rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example api-routes-rest api-routes-rest-app
# or
yarn create next-app --example api-routes-rest api-routes-rest-app
# or
pnpm create next-app -- --example api-routes-rest api-routes-rest-app
pnpm create next-app --example api-routes-rest api-routes-rest-app
```

### Deploy to Vercel
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example api-routes api-routes-app
# or
yarn create next-app --example api-routes api-routes-app
# or
pnpm create next-app -- --example api-routes api-routes-app
pnpm create next-app --example api-routes api-routes-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/auth0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npx create-next-app --example auth0 auth0-app
# or
yarn create next-app --example auth0 auth0-app
# or
pnpm create next-app -- --example auth0 auth0-app
pnpm create next-app --example auth0 auth0-app
```

## Configuring Auth0
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example basic-css basic-css-app
# or
yarn create next-app --example basic-css basic-css-app
# or
pnpm create next-app -- --example basic-css basic-css-app
pnpm create next-app --example basic-css basic-css-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/basic-export/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npx create-next-app --example basic-export basic-export-app
# or
yarn create next-app --example basic-export basic-export-app
# or
pnpm create next-app -- --example basic-export basic-export-app
pnpm create next-app --example basic-export basic-export-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/blog-starter-typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ npx create-next-app --example blog-starter-typescript blog-starter-typescript-ap
# or
yarn create next-app --example blog-starter-typescript blog-starter-typescript-app
# or
pnpm create next-app -- --example blog-starter-typescript blog-starter-typescript-app
pnpm create next-app --example blog-starter-typescript blog-starter-typescript-app
```

Your blog should be up and running on [http://localhost:3000](http://localhost:3000)! If it doesn't work, post on [GitHub discussions](https://github.com/vercel/next.js/discussions).
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ or
```
yarn create next-app --example blog-starter blog-starter-app
# or
pnpm create next-app -- --example blog-starter blog-starter-app
pnpm create next-app --example blog-starter blog-starter-app

```

Expand Down
2 changes: 1 addition & 1 deletion examples/blog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ npx create-next-app --example blog my-blog
# or
yarn create next-app --example blog my-blog
# or
pnpm create next-app -- --example blog my-blog
pnpm create next-app --example blog my-blog
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/catch-all-routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ npx create-next-app --example catch-all-routes catch-all-routes-app
# or
yarn create next-app --example catch-all-routes catch-all-routes-app
# or
pnpm create next-app -- --example catch-all-routes catch-all-routes-app
pnpm create next-app --example catch-all-routes catch-all-routes-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
2 changes: 1 addition & 1 deletion examples/cms-agilitycms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ npx create-next-app --example cms-agilitycms cms-agilitycms-app
# or
yarn create next-app --example cms-agilitycms cms-agilitycms-app
# or
pnpm create next-app -- --example cms-agilitycms cms-agilitycms-app
pnpm create next-app --example cms-agilitycms cms-agilitycms-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-builder-io/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npx create-next-app --example cms-builder-io cms-builder-io-app
# or
yarn create next-app --example cms-builder-io cms-builder-io-app
# or
pnpm create next-app -- --example cms-builder-io cms-builder-io-app
pnpm create next-app --example cms-builder-io cms-builder-io-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-buttercms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ npx create-next-app --example cms-buttercms cms-buttercms-app
# or
yarn create next-app --example cms-buttercms cms-buttercms-app
# or
pnpm create next-app -- --example cms-buttercms cms-buttercms-app
pnpm create next-app --example cms-buttercms cms-buttercms-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-contentful/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ npx create-next-app --example cms-contentful cms-contentful-app
# or
yarn create next-app --example cms-contentful cms-contentful-app
# or
pnpm create next-app -- --example cms-contentful cms-contentful-app
pnpm create next-app --example cms-contentful cms-contentful-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-cosmic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ npx create-next-app --example cms-cosmic cms-cosmic-app
# or
yarn create next-app --example cms-cosmic cms-cosmic-app
# or
pnpm create next-app -- --example cms-cosmic cms-cosmic-app
pnpm create next-app --example cms-cosmic cms-cosmic-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-datocms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ npx create-next-app --example cms-datocms cms-datocms-app
# or
yarn create next-app --example cms-datocms cms-datocms-app
# or
pnpm create next-app -- --example cms-datocms cms-datocms-app
pnpm create next-app --example cms-datocms cms-datocms-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-drupal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ npx create-next-app --example cms-drupal cms-drupal-app
# or
yarn create next-app --example cms-drupal cms-drupal-app
# or
pnpm create next-app -- --example cms-drupal cms-drupal-app
pnpm create next-app --example cms-drupal cms-drupal-app
```

## Setup Drupal
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-ghost/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ npx create-next-app --example cms-ghost cms-ghost-app
# or
yarn create next-app --example cms-ghost cms-ghost-app
# or
pnpm create next-app -- --example cms-ghost cms-ghost-app
pnpm create next-app --example cms-ghost cms-ghost-app
```

### Setp 1. Run Next.js in development mode
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-graphcms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ npx create-next-app --example cms-graphcms cms-graphcms-app
# or
yarn create next-app --example cms-graphcms cms-graphcms-app
# or
pnpm create next-app -- --example cms-graphcms cms-graphcms-app
pnpm create next-app --example cms-graphcms cms-graphcms-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-kontent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ npx create-next-app --example cms-kontent cms-kontent-app
# or
yarn create next-app --example cms-kontent cms-kontent-app
# or
pnpm create next-app -- --example cms-kontent cms-kontent-app
pnpm create next-app --example cms-kontent cms-kontent-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-prepr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ npx create-next-app --example cms-prepr cms-prepr-app
# or
yarn create next-app --example cms-prepr cms-prepr-app
# or
pnpm create next-app -- --example cms-prepr cms-prepr-app
pnpm create next-app --example cms-prepr cms-prepr-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-prismic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ npx create-next-app --example cms-prismic cms-prismic-app
# or
yarn create next-app --example cms-prismic cms-prismic-app
# or
pnpm create next-app -- --example cms-prismic cms-prismic-app
pnpm create next-app --example cms-prismic cms-prismic-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-sanity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ npx create-next-app --example cms-sanity cms-sanity-app
# or
yarn create next-app --example cms-sanity cms-sanity-app
# or
pnpm create next-app -- --example cms-sanity cms-sanity-app
pnpm create next-app --example cms-sanity cms-sanity-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-storyblok/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ npx create-next-app --example cms-storyblok cms-storyblok-app
# or
yarn create next-app --example cms-storyblok cms-storyblok-app
# or
pnpm create next-app -- --example cms-storyblok cms-storyblok-app
pnpm create next-app --example cms-storyblok cms-storyblok-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-strapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ npx create-next-app --example cms-strapi cms-strapi-app
# or
yarn create next-app --example cms-strapi cms-strapi-app
# or
pnpm create next-app -- --example cms-strapi cms-strapi-app
pnpm create next-app --example cms-strapi cms-strapi-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-takeshape/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ npx create-next-app --example cms-takeshape cms-takeshape-app
# or
yarn create next-app --example cms-takeshape cms-takeshape-app
# or
pnpm create next-app -- --example cms-takeshape cms-takeshape-app
pnpm create next-app --example cms-takeshape cms-takeshape-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-tina/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ npx create-next-app --example cms-tina cms-tina-app
# or
yarn create next-app --example cms-tina cms-tina-app
# or
pnpm create next-app -- --example cms-tina cms-tina-app
pnpm create next-app --example cms-tina cms-tina-app
```

### Setp 1. Run Next.js in development mode
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-umbraco-heartcore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ npx create-next-app --example cms-umbraco-heartcore cms-umbraco-heartcore-app
# or
yarn create next-app --example cms-umbraco-heartcore cms-umbraco-heartcore-app
# or
pnpm create next-app -- --example cms-umbraco-heartcore cms-umbraco-heartcore-app
pnpm create next-app --example cms-umbraco-heartcore cms-umbraco-heartcore-app
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-wordpress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ npx create-next-app --example cms-wordpress cms-wordpress-app
# or
yarn create next-app --example cms-wordpress cms-wordpress-app
# or
pnpm create next-app -- --example cms-wordpress cms-wordpress-app
pnpm create next-app --example cms-wordpress cms-wordpress-app
```

## Configuration
Expand Down
Loading