Problems with installing angular cli

0

when trying to install the angle cli using sudo npm i @ angular / cli

I get this error

npm WARN saveError ENOENT: no such file or directory, open '/Users/Luis/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users/Luis/package.json'
npm WARN Luis No description
npm WARN Luis No repository field.
npm WARN Luis No README data
npm WARN Luis No license field.
    
asked by Luis Morales Ponce 04.02.2018 в 16:58
source

1 answer

1

In this case you have to be in the Path, where are you project and execute:

npm init

To initialize the project and create the package.json file in the project folder.

Once completed, the facility must operate with:

npm install @ angular / cli --save

As indicated in the Angular-cli documentation:

link

By the way, this question is already duplicated in:

link

    
answered by 04.02.2018 в 17:19