Skip to content

ng install fails with missing module #185

Description

@filipesilva

Using the latest master, and trying to install angularfire2 yields the following result:

filipe.silva@DESKTOP-7ND6T3R MINGW64 /e/dev/ideablade/testing/testproj4 (master)
$ ng install angularfire2
Cannot find module 'npm'
Error: Cannot find module 'npm'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Class.module.exports.Task.extend.init (E:\dev\ideablade\angular-cli\addon\ng2\tasks\lib-install.js:22:28)
at new Class (E:\dev\ideablade\angular-cli\node_modules\angular-cli\node_modules\core-object\core-object.js:18:12)
at Class.module.exports.Command.extend.run (E:\dev\ideablade\angular-cli\addon\ng2\commands\install.js:24:26)
at Class.<anonymous> (E:\dev\ideablade\angular-cli\node_modules\angular-cli\lib\models\command.js:151:17)
at lib$rsvp$$internal$$tryCatch (E:\dev\ideablade\angular-cli\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:493:16)
at lib$rsvp$$internal$$invokeCallback (E:\dev\ideablade\angular-cli\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:505:17)

I tried to simply do npm install npm on my angular-cli install, but that changes the error to something else that doesn't look much better.

The issue seems to be related with this line.

/cc @jkuri@NathanWalker@jeffbcross

Edit: running ng install ng2-cli-test-lib yields the same results.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions