0

I am trying to install Angular Material using npm. I have installed Node.js. Whenever i try to install Angular Material using npm command in the command line I am getting the following error.

npm WARN enoent :no such a file or directory,open 'c:\users\hp\package.json'

is anything missing ???

2
  • First you need to type npm init and then npm install angular-material --save Commented Sep 7, 2016 at 7:45
  • npm init says npm install <pkg> --save what it means ?? Commented Sep 7, 2016 at 7:48

1 Answer 1

1

The folder you are working on does not seem to be a node project folder. NPM expects a file called package.json to be in the root of your project before it can start installing dependencies.

You can create this file via helper by running npm init

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.