Angular ng serve command error

Angular ng serve command error
0.0 0

#1

I am getting an error every time when I run npm command e,g: ng serve it will shows this error

C:\Users\Awais\Desktop\ng todo\todos>ng serve
Cannot find module 'ssri’
Error: Cannot find module ‘ssri’
** at Function.Module._resolveFilename (module.js:538:15)**
** at Function.Module._load (module.js:468:25)**
** at Module.require (module.js:587:17)**
** at require (internal/module.js:11:18)**
** at Object. (C:\Users\Awais\Desktop\ng todo\todos\node_modules\cac**
ache\lib\content\path.js:6:14)
** at Module._compile (module.js:643:30)**
** at Object.Module._extensions…js (module.js:654:10)**
** at Module.load (module.js:556:32)**
** at tryModuleLoad (module.js:499:12)**
** at Function.Module._load (module.js:491:3)**
** at Module.require (module.js:587:17)**
** at require (internal/module.js:11:18)**
** at Object. (C:\Users\Awais\Desktop\ng todo\todos\node_modules\cac**
ache\lib\entry-index.js:5:21)
** at Module._compile (module.js:643:30)**
** at Object.Module._extensions…js (module.js:654:10)**
** at Module.load (module.js:556:32)**


#2

Have you tried removing node_modules and running npm install?


#3

yes I have tried but no luck.


#4

maybe update your version of node and/or npm


#5

yes its working when I update the version of angular cli. Thanks