--skip-install option in create-next-app
See original GitHub issueDescribe 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:
- Created 2 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When using the default templates from this folder, the dependency list in
package.json
is populated using the install command(npm install
oryarn 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 thepackage.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 commentAdding 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.tshttps://github.com/vercel/next.js/blob/canary/packages/create-next-app/index.ts