I'm trying to follow the installation instructions 
(https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md).
 
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.


### Version info
- ng - v
   angular-cli: 1.0.0-beta.19-3
   node: 6.9.1
   os: win32 x64
- npm -v 
   4.0.1

### How to reproduce these conditions
npm install angularfire2 firebase --save

### Debug output
PS C:\Projetos\lab\angularfire2> npm install angularfire2 --save
npm ERR! Windows_NT 10.0.14393
[npm-debug.log.txt](https://github.com/angular/angularfire2/files/717503/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\angularfire2\npm-debug.log

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'angularfire2',
1 verbose cli   '--save' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData angularfire2
8 silly fetchNamedPackageData angularfire2
9 silly mapToRegistry name angularfire2
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry   raw: 'angularfire2',
12 silly mapToRegistry   scope: null,
12 silly mapToRegistry   escapedName: 'angularfire2',
12 silly mapToRegistry   name: 'angularfire2',
12 silly mapToRegistry   rawSpec: '',
12 silly mapToRegistry   spec: 'latest',
12 silly mapToRegistry   type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/angularfire2
14 verbose request uri https://registry.npmjs.org/angularfire2
15 verbose request no auth needed
16 info attempt registry request try #1 at 16:57:25
17 verbose request id 0b55dbd1503fdc92
18 verbose etag W/"5878dc16-1a1dd"
19 verbose lastModified Fri, 13 Jan 2017 13:54:30 GMT
20 http request GET https://registry.npmjs.org/angularfire2
21 http 304 https://registry.npmjs.org/angularfire2
22 verbose headers { date: 'Thu, 19 Jan 2017 18:57:27 GMT',
22 verbose headers   via: '1.1 varnish',
22 verbose headers   'cache-control': 'max-age=300',
22 verbose headers   etag: 'W/"5878dc16-1a1dd"',
22 verbose headers   age: '271',
22 verbose headers   connection: 'keep-alive',
22 verbose headers   'x-served-by': 'cache-gru7122-GRU',
22 verbose headers   'x-cache': 'HIT',
22 verbose headers   'x-cache-hits': '1',
22 verbose headers   'x-timer': 'S1484852247.129099,VS0,VE0',
22 verbose headers   vary: 'Accept-Encoding' }
23 silly get cb [ 304,
23 silly get   { date: 'Thu, 19 Jan 2017 18:57:27 GMT',
23 silly get     via: '1.1 varnish',
23 silly get     'cache-control': 'max-age=300',
23 silly get     etag: 'W/"5878dc16-1a1dd"',
23 silly get     age: '271',
23 silly get     connection: 'keep-alive',
23 silly get     'x-served-by': 'cache-gru7122-GRU',
23 silly get     'x-cache': 'HIT',
23 silly get     'x-cache-hits': '1',
23 silly get     'x-timer': 'S1484852247.129099,VS0,VE0',
23 silly get     vary: 'Accept-Encoding' } ]
24 verbose etag https://registry.npmjs.org/angularfire2 from cache
25 verbose get saving angularfire2 to 
C:\Users\AugustoCésar\AppData\Roaming\npm-cache\registry.npmjs.org\angularfire2\.cache.json
26 verbose correctMkdir C:\Users\AugustoCésar\AppData\Roaming\npm-cache 
correctMkdir not in flight; initializing
27 silly install normalizeTree
28 silly loadCurrentTree Finishing
29 silly loadIdealTree Starting
30 silly install loadIdealTree
31 silly cloneCurrentTree Starting
32 silly install cloneCurrentTreeToIdealTree
33 silly cloneCurrentTree Finishing
34 silly loadShrinkwrap Starting
35 silly install loadShrinkwrap
36 silly loadShrinkwrap Finishing
37 silly loadAllDepsIntoIdealTree Starting
38 silly install loadAllDepsIntoIdealTree
39 silly rollbackFailedOptional Starting
40 silly rollbackFailedOptional Finishing
41 silly runTopLevelLifecycles Finishing
42 silly install printInstalled
43 verbose stack Error: Refusing to install angularfire2 as a dependency of 
itself
43 verbose stack     at checkSelf (C:\Program 
Files\nodejs\node_modules\npm\lib\install\validate-args.js:53:14)
43 verbose stack     at Array.<anonymous> (C:\Program 
Files\nodejs\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
43 verbose stack     at LOOP (C:\Program 
Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
43 verbose stack     at chain (C:\Program 
Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:20:5)
43 verbose stack     at C:\Program 
Files\nodejs\node_modules\npm\lib\install\validate-args.js:16:5
43 verbose stack     at C:\Program 
Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:35
43 verbose stack     at Array.forEach (native)
43 verbose stack     at C:\Program 
Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:11
43 verbose stack     at Array.forEach (native)
43 verbose stack     at asyncMap (C:\Program 
Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:51:8)
44 verbose cwd C:\Projetos\lab\angularfire2
45 error Windows_NT 10.0.14393
46 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program 
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "angularfire2" 
"--save"
47 error node v6.9.1
48 error npm  v4.0.1
49 error code ENOSELF
50 error Refusing to install angularfire2 as a dependency of itself
51 error If you need help, you may report this error at:
51 error     <https://github.com/npm/npm/issues>
52 verbose exit [ 1, true ]

Reply via email to