User1077245351 posted
Dear friends,
I am trying to install Angular to my pc to start some web projects with Angular.
I followed according to the instructions on the installation of Angular on my pc, I am still getting errors: Cannot find module '@angular-devkit/core'
> <g class="gr_ gr_183 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="183" data-gr-id="183">npm</g> install-g @angular/<g class="gr_ gr_459 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"
id="459" data-gr-id="459">cli</g>
>node - v v11.12.0
>npm -v 6.7.0
>ng serve or ng "new app" gives me this always error the time: Cannot find module '@angular-devkit/core'
I tried <g class="gr_ gr_685 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="685" data-gr-id="685">npm</g> update -g @angular/<g class="gr_ gr_725 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling"
id="725" data-gr-id="725">cli</g> but I am not sure that I need to edit the package.josn for changing the @angular/<g class="gr_ gr_916 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del multiReplace" id="916" data-gr-id="916">cli</g>:
"1.6.0" into "^1.6.0<g class="gr_ gr_1171 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" id="1171" data-gr-id="1171">" .</g> But I am not sure which file "package.json is the right one since I can not find any line that
shows @angular/<g class="gr_ gr_1879 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="1879" data-gr-id="1879">cli</g> version <g class="gr_ gr_1877 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"
id="1877" data-gr-id="1877">anys</g> package.json file on the node_modules folder.
I have been a few days to figure out I don't know but still keep show up same error, without fixed that same error I can't do anything with Angular project I want to start as soon as possible.
Hope you could help me with this. Your help is very appreciated.
C:\Users\MeyersAl>node -v
v11.12.0
C:\Users\MeyersAl>npm -v
6.7.0
C:\Users\MeyersAl>ng new app-angulardev
internal/modules/cjs/loader.js:651
throw err;
^
Error: Cannot find module '@angular-devkit/core'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:649:15)
at Function.Module._load (internal/modules/cjs/loader.js:575:25)
at Module.require (internal/modules/cjs/loader.js:705:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.<anonymous> (C:\Users\MeyersAl\AppData\Roaming\npm\node_modules\@angular\cli\lib\init.js:13:16)
at Module._compile (internal/modules/cjs/loader.js:799:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
at Module.load (internal/modules/cjs/loader.js:666:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)
Thanks.