question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--skip-install option in create-next-app

See original GitHub issue

Describe the feature you’d like to request

A --skip-install option in create-next-app, like in react-native, to skip installing dependencies would be really great. It allows using other package managers like pnpm

Describe the solution you’d like

do not install dependencies automatically when the --skip-install option is set. But the dependencies should be listed in package.json, so user could manually install the dependencies using other package managers like pnpm

Describe alternatives you’ve considered

An option to use pnpm(--use-pnpm). pnpm has gained significant popularity and would be a good option to add.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Pika-Poolcommented, Dec 12, 2021

When using the default templates from this folder, the dependency list in package.json is populated using the install command(npm install or yarn install). When the --skip-install option is enabled, we can no longer use this method. But we still need to list the dependencies, with their versions in the package.json file, so the user can install them using their favorite package manager.

So what would be a good method to get the respective versions? Should we just mark it as latest or *? Or I have listed some other ways I can think of in my previous comment

1reaction
balazsorban44commented, Dec 10, 2021

Adding a --skip-install flag sounds reasonable. I’m not 100% what would go into the --use-pnpm flag, let’s start with the first one.

Here are the appropriate files:

(look for await install) https://github.com/vercel/next.js/blob/canary/packages/create-next-app/create-app.ts

https://github.com/vercel/next.js/blob/canary/packages/create-next-app/index.ts

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Next App | Next.js
Create Next App. The easiest way to get started with Next.js is by using create-next-app . This CLI tool enables you to quickly...
Read more >
How to skip git setup while creating a next app via cli npx ...
On top of How to create react app without git (skipping git)?, I would like to know if there are any ways to...
Read more >
ng generate - Angular
Generates a new basic application definition in the "projects" subfolder of the workspace. ... Skip installing dependency packages. boolean, false.
Read more >
next-pwa - npm
After running next build , this will generate two files in your public : workbox-*.js and sw.js , which will automatically be served ......
Read more >
Create and edit run/debug configurations - Android Developers
However, you can modify and create new configurations, and modify the default ... specify details such as app installation, launch, and test options....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found