As per the instructions found in this helpful guide, I executed
rxjs-5-to-6-migrate -p src/tsconfig.app.json
. However, an error is appearing. All previous steps were completed successfully without any issues. Any suggestions on how to resolve this?
Please note: I have already deleted the node_modules
folder and reinstalled with npm i
, but the error persists.
>rxjs-5-to-6-migrate -p src/tsconfig.app.json
Running the automatic migrations. Please be patient as it may take some time.
module.js:549
throw err;
^
Error: Cannot find module 'typescript'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\lokuge\AppData\Roaming\npm\node_modules\rxjs-tslint\node_modules\tslint\lib\linter.js:22:10)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
...
...(continue listing various errors reported)