Y
Y
yuki2021-07-28 10:36:39
npm
yuki, 2021-07-28 10:36:39

Automatic installation of all packages at project start?

Is it possible to somehow automatically install a set of npm packages at the start of the project (for example: a server part is created on node.js)? Well, that is, npm init is introduced and that it already has dependencies, based on which area is being developed. Something along the lines of "npm init server" will create a package.json that will have nodemon in devDependencies and express dependencies in normal

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2021-07-28
@bingo347

https://docs.npmjs.com/cli/v7/commands/npm-init
well, find a suitable template, like this:
https://www.npmjs.com/package/express-app-boilerplate
there is also this thing for git templates:
https://www.npmjs.com/package/degit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question