Skip to content

RC.0 on Ubuntu 16.04 any command of ng gives error #5022

Description

@mrudangit

Please provide us with the following information:

OS?

Linux hostname 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Versions.

ng -v gives error
/usr/lib/node_modules/@angular/cli/bin/ng:94
const hasOldDep = !!packageJsonProject.dependencies['angular-cli'];
^

TypeError: Cannot read property 'angular-cli' of undefined
at Object. (/usr/lib/node_modules/@angular/cli/bin/ng:94:54)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3

Did this

npm uninstall -g angular-cli
npm uninstall -g @angular/cli
npm cache clean

npm install -g @angular/cli@latest

Works fine on Winddows 10

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