Answer the question
In order to leave comments, you need to log in
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 install
everything ok!
I thought now I’ll do some more or something ng init
like 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.
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question