Skip to content

Error: Cannot find module 'request' #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mcwebdev opened this issue Feb 12, 2016 · 8 comments
Closed

Error: Cannot find module 'request' #74

mcwebdev opened this issue Feb 12, 2016 · 8 comments

Comments

@mcwebdev
Copy link

$ ng build --watch
version: 1.13.13
Cannot find module 'request'
Error: Cannot find module 'request'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Leek._enqueue (C:\Users\mattchar\AppData\Roaming\npm\node_modules\angular-cli\node_modules\leek\lib\leek.js:60:30)
    at Leek.track (C:\Users\mattchar\AppData\Roaming\npm\node_modules\angular-cli\node_modules\leek\lib\leek.js:87:15)
    at Class.Command.validateAndRun (C:\projects\testit\node_modules\ember-cli\lib\models\command.js:117:18)
    at C:\projects\testit\node_modules\ember-cli\lib\cli\cli.js:86:22
    at lib$rsvp$$internal$$tryCatch (C:\projects\testit\node_modules\rsvp\dist\rsvp.js:1036:16)
    at lib$rsvp$$internal$$invokeCallback (C:\projects\testit\node_modules\rsvp\dist\rsvp.js:1048:17)

@gbataille
Copy link

+1

If I use npm run build (which supposedly calls ng build), I get Cannot find module './source-map/source-map-generator' coming from some ts2dart dependency...

I saw in package.json that engines is node < 5. I have node 5.1.0. Could it be the issue?

@gbataille
Copy link

that's it, at least for me. Downgrading to node 4.3.0 works. Don't know why though.

gbataille added a commit to gbataille/material2 that referenced this issue Feb 15, 2016
@sothychan
Copy link

I have not run into this issue at all. I'm running Node 5.5.

@gbataille
Copy link

agreed, works in 5.6 for me too...
so I think I used to be in 5.1. Maybe there is a problem there.
@mcwebdev which version of node are you using?

@jelbourn
Copy link
Member

@hansl do you know anything about the CLI and required node version?

@hansl
Copy link
Contributor

hansl commented Feb 16, 2016

We test the CLI on Node 4 and Node 5 for every commits: https://github.com/angular/angular-cli/blob/master/.travis.yml. This might be ts2dart specific.

@jelbourn
Copy link
Member

Looks like it might just be with node 5.1, so updating node should be the solution for this.

andrewseguin pushed a commit to andrewseguin/components that referenced this issue Oct 15, 2018

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
* Removes the component bundle from the Plunker since it's unused.
* Adds `Arial` as a fallback font (as stated in material.google.com)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants