D
D
Dmitry Gavrilenko2018-03-25 17:58:05
Angular
Dmitry Gavrilenko, 2018-03-25 17:58:05

How to properly create package.json with Angular 5?

Hello.
Faced a strange situation.
I threw in package.json different
Foundation,
Sass ... packages
that I will need in development. I thought it would be nice to have Angular 5 as a dependency. I threw in everything that Angular needed.
I do npm installeverything ok!
I thought now I’ll do some more or something ng initlike that and everything will take off. Nothing of the kind was found in the documentation for angular-cli. Well, I'll try differently.
I remove everything related to Angular from package.json. I execute ng new ...
I get a similar log:


error! ConstructorApp/package.json already exists.
error! ConstructorApp/.gitignore already exists.
npm WARN [email protected] No repository field.

Roughly speaking, nothing happened.
My goal is this: I want to create such a package.json and configuration files there for all sorts of Glups, which I can take as a basis in new projects. Those. I downloaded these files from the repository, performed npm install and there are already all the preprocessors and tasks and angular and everything else necessary for work
Is there any solution in my situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
instant123, 2018-03-25
@Maddox

Create a project with the latest version of angular-cli, there should be 5 angular.
To do this, write ng new project-name.
Then drop the packages in package.json and write npm install.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question