Skip to content

Can't use ng command #1486

Closed
Closed
@jiaming0708

Description

@jiaming0708

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Mac OSX EI 10.11.6
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    node --version
    v6.2.2
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.

I created a new project, and built it. I got an error

1.ng new project
2.cd project
3.ng build <== fail

  1. The log given by the failure. Normally this include a stack trace and some
    more information.

module.js:442
throw err;
^

Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/Users/jimmy/Desktop/juice/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:11:26)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)

  1. Mention any other details that might be useful.

I can't use any 'ng' command in this project, always show the error


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions