Ionic serve error: cannot find module 'typescript'


#1

Hi all,

in my mac, i have install vs code, angular, ionic, and start a new ionic project.
when i type “ionic serve” commend, got some error:
cannot find module ‘typescript’

what i miss?
kindly have your help~


#2

sometimes these error appear if you try to run the command for the first time after installing a new plugin…so try to run this command once again and see what happens whether the same error is shown or a different one or no error appears…if the problem persists run npm install to update your npm.


#3

@abhi123 thanks. i reference this: install ionic to re-install all things. it’s work.

now, i can play ionic~
thanks~