angular2のチュートリアル
公式サイトのチュートリアルをやってみる。
Windows10
https://angular.io/docs/ts/latest/quickstart.html
$ npm start > angular2-quickstart@1.0.0 start C:\Users\kkkkkkkkkubotti\Documents\test_angular\angular2-quickstart > concurrently "npm run tsc:w" "npm run lite" 'concurrently' ▒́A▒▒▒▒▒R▒}▒▒▒h▒܂▒▒͊O▒▒▒R▒}▒▒▒h▒A ▒▒▒▒\▒ȃv▒▒▒O▒▒▒▒▒܂▒▒̓o▒b▒` ▒t▒@▒C▒▒▒Ƃ▒▒ĔF▒▒▒▒▒▒Ă▒▒܂▒▒▒B npm ERR! Windows_NT 10.0.10240 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" npm ERR! node v4.3.1 npm ERR! npm v2.14.12 npm ERR! code ELIFECYCLE npm ERR! angular2-quickstart@1.0.0 start: `concurrently "npm run tsc:w" "npm run lite" ` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the angular2-quickstart@1.0.0 start script 'concurrently "npm run tsc:w" "npm run lite" '. npm ERR! This is most likely a problem with the angular2-quickstart package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! concurrently "npm run tsc:w" "npm run lite" npm ERR! You can get their info via: npm ERR! npm owner ls angular2-quickstart npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! C:\Users\kkkkkkkkkubotti\Documents\test_angular\angular2-quickstart\npm-debug.log
npm install
したら、途中で、
gyp ERR! System Windows_NT 10.0.10240
とか出たけどinstallができたっぽい。
そのあと、
npm start
を実行したら、うまく動いた。(Edgeが勝手に開いた)
TODO: Edgeじゃないブラウザにする方法を調べる。
ES5
{ "compilerOptions": { "target": "es5", "module": "system", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "noImplicitAny": false }, "exclude": [ "node_modules", "typings/main", "typings/main.d.ts" ] }
にあるes5というのは、ECMAScript 5
のことらしい。