I'm trying to follow the installation instructions.
I've done this task before, but now it fails in the application directory.
Despite the fact that it works (installation) on the parent directory, the angularfire2 module is not found by the compiler neither by VisualStudio.
Obs:
I reinstalled everything and still doesn't work!
Obs:
I reinstalled everything and still doesn't work!
npm install angularfire2 firebase --save
PS C:\Projetos\lab\angularfire2> npm install angularfire2 --save
npm ERR! Windows_NT 10.0.14393
npm-debug.log.txt
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "angularfire2" "--save"
npm ERR! node v6.9.1
npm ERR! npm v4.0.1
npm ERR! code ENOSELF
npm ERR! Refusing to install angularfire2 as a dependency of itself
npm ERR!
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! C:\Projetos\lab\angularfire2npm-debug.log
I'm really dumb!!!! It's so embarrassing to me!
I changed the project麓s name and worked fine!!
Sorry!
Thanks for change the message!
:)
Refusing to install package with name "angularfire2" under a package
also called "angularfire2". Did you name your project the same
as the dependency you're installing?
When you have the "package.json" with project "name" attribute exactly same as the name of dependency you required to install you will face this issue.
Most helpful comment
When you have the "package.json" with project "name" attribute exactly same as the name of dependency you required to install you will face this issue.