I am having difficulties installing angularjs version 1.5.7 using npm. i have prepared my package.json file as follows.
sudo npm install firstname.lastname@example.org --save
npm ERR! Linux 4.4.0-24-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "email@example.com" "--save"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code ENOSELF
npm ERR! Refusing to install angular as a dependency of itself
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/nato/angular/npm-debug.log
Try renaming your folder from
angular-test or something different than angular. Also, if you have a
package.json, check that the package name is different from "angular".