angular / angular-cli

CLI tool for Angular
https://cli.angular.dev
MIT License
26.79k stars 11.98k forks source link

Unable to get any ng methods to work properly #8180

Closed illegalnumbers closed 5 years ago

illegalnumbers commented 7 years ago

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

latest ng installed with cli installed globally node version is 8.8 npm version is 5.4.2 mac osx 10.11.6

Repro steps.

Install ng-cli and then run ng server or ng --help or ng --version

The log given by the failure.

module.js:515
    throw err;
    ^

Error: Cannot find module 'rxjs/add/operator/map'
    at Function.Module._resolveFilename (module.js:513:15)
    at Function.Module._load (module.js:463:25)
    at Module.require (module.js:556:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/bytenel/workplace/wger/node_modules/@angular-devkit/core/src/logger/indent.js:10:1)
    at Module._compile (module.js:612:30)
    at Object.Module._extensions..js (module.js:623:10)
    at Module.load (module.js:531:32)
    at tryModuleLoad (module.js:494:12)
    at Function.Module._load (module.js:486:3)

Doesn't work even if I install that module globally.

Desired functionality.

Plz2work and serve my app or give something useful

Mention any other details that might be useful.

filipesilva commented 7 years ago

Hi there, when you say latest ng installed with cli can you specify which version that is please? You can do npm ls @angular/cli to see this version since ng help doesn't work.

illegalnumbers commented 7 years ago

wger@1.8.0 /Users/bytenel/workplace/wger └── @angular/cli@1.4.9

is the one listed in my project and

/Users/bytenel/.nvm/versions/node/v8.8.0/lib └── @angular/cli@1.4.9

is the one globally

filipesilva commented 7 years ago

It sounds like a dependency wasn't installed correctly... can you try reinstalling please? Using 1.5.0 instead might help as well.

alan-agius4 commented 5 years ago

I'm sorry, but we can't reproduce the problem following the instructions you provided. Remember that we have a large number of issues to resolve, and have only a limited amount of time to reproduce your issue. Short, explicit instructions make it much more likely we'll be able to reproduce the problem so we can fix it.

If the problem persists, please open a new issue following our submission guidelines.

A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

angular-automatic-lock-bot[bot] commented 5 years ago

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.