Description
Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX Sierra
Versions.
Please run
ng --version
. If there's nothing outputted, please run in a Terminal:node --version
and paste the result here:
Node: 7.6.0
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
I cant use ng --version, if i use yarn global add.
The log given by the failure.
Normally this include a stack trace and some more information.
/Users/burak/.config/yarn/global/node_modules/@angular/cli/bin/ng:95
const hasOldDevDep = !!packageJsonProject.devDependencies['angular-cli'];
^
TypeError: Cannot read property 'angular-cli' of undefined
at Object. (/Users/burak/.config/yarn/global/node_modules/@angular/cli/bin/ng:95:60)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:422:7)
at startup (bootstrap_node.js:143:9)
at bootstrap_node.js:537:3
Mention any other details that might be useful.
Thanks! We'll be in touch soon.