1

I'm trying to follow a tutorial and install angular package in my project.

I have npm (4.0.5) and node (6.9.2) already installed in my system

I'm in my project folder and I run :

 npm install angular

But node_modules folder is not installed in my project directory. I've tried this command but still not working:

sudo chown -R $(whoami) ~/.npm

The errors I got when I ran npm install angular:

├── [email protected] 
├── UNMET PEER DEPENDENCY es6-shim@^0.35.0
├── UNMET PEER DEPENDENCY [email protected]
├── UNMET PEER DEPENDENCY [email protected]
└── UNMET PEER DEPENDENCY zone.js@^0.6.12

npm WARN enoent ENOENT: no such file or directory, open  '/Users/nilliany/package.json'
npm WARN [email protected] requires a peer of es6-shim@^0.35.0 but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of zone.js@^0.6.12 but none was installed.
npm WARN nilliany No description
npm WARN nilliany No repository field.
npm WARN nilliany No README data
npm WARN nilliany No license field.
rory-h
  • 660
  • 1
  • 12
  • 30

1 Answers1

0

You should have a package.json in your project to do npm install. Please do npm init from your project and follow the instructions. It will create a package.json file in your project. Later you can install any node package in your project.

XCEPTION
  • 1,671
  • 1
  • 18
  • 38