Ionic2 RC0: Install Typescript now locally?


#1

When I have typescript globally only, I get:

Running 'build:before' npm script before build
> saveup@ build /Users/user/project
> ionic-app-scripts build
module.js:442
    throw err;
    ^
Error: Cannot find module 'typescript'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/user/project/node_modules/@ionic/app-scripts/dist/transpile.js:10:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)

Why the sudden move from global to local typescript and how to mitigate above error?