Description
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX El Capitan
Versions.
Please run
ng --version
. If there's nothing outputted, please run in a Terminal:node -- version
and paste the result here:
Can't run any ng commands all same error
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Updated the cli from beta 14 to beta 18 using all 6 steps.
ng init and all other ng commands give me "Cannot find module '@angular/core'"
The log given by the failure.
Normally this include a stack trace and some more information.
Error: Cannot find module '@angular/core'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.
....