Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5769d14

Browse files
Update README.md
1 parent a206740 commit 5769d14

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

‎README.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,40 @@ Once you have access to the environment variables you'll need, deploy the exampl
1818
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:
1919

2020
```bash
21-
npx create-next-app --example with-mongodb with-mongodb-app
21+
npx create-next-app --example with-mongodb mflix
2222
```
2323

2424
```bash
25-
yarn create next-app --example with-mongodb with-mongodb-app
25+
yarn create next-app --example with-mongodb mflix
2626
```
2727

2828
```bash
29-
pnpm create next-app --example with-mongodb with-mongodb-app
29+
pnpm create next-app --example with-mongodb mflix
30+
```
31+
32+
While running the above command in `node version > 18` will throw an error as following:
33+
34+
```
35+
? Could not download "with-mongodb" because of a connectivity issue between your machine and GitHub.
36+
✔ Could not download "with-mongodb" because of a connectivity issue between your machine and GitHub.
37+
Do you want to use the default template instead? (Y/n)
38+
```
39+
40+
The issue is in the node-tar extract() which emits the close event. There is a
41+
[GitHub issue open](https://github.com/vercel/next.js/issues/39321) to address this, but the current workaround is described below:
42+
43+
You can either use node version < 18 or type Y to get the default template downloaded:
44+
```
45+
Do you want to use the default template instead? (Y/n) Y
46+
```
47+
After that navigate to the project directory by running
48+
```
49+
cd mflix
50+
```
51+
52+
And then install all the npm dependencies by running:
53+
```
54+
npm install
3055
```
3156

3257
## Configuration

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /