duongphuhiep / learn-typescript-module2

Demonstration of how to use stealjs to load AMD modules written in Typescript and to load other external library: jquery, riotjs and RiotControl
2 stars 0 forks source link

Can't get your example working #1

Open ghost opened 8 years ago

ghost commented 8 years ago

Busted.

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/5.11.0/bin/node" "/Users/simon/.npm-packages/bin/npm" "run" "build:typescript"
npm ERR! node v5.11.0
npm ERR! npm  v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! learning-ts-module2@1.0.0 build:typescript: tsc --project app
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the learning-ts-module2@1.0.0 build:typescript script 'tsc --project app'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the learning-ts-module2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc --project app
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs learning-ts-module2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls learning-ts-module2
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/simon/Desktop/learn-typescript-module2/npm-debug.log

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/5.11.0/bin/node" "/Users/simon/.npm-packages/bin/npm" "run" "build"
npm ERR! node v5.11.0
npm ERR! npm  v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! learning-ts-module2@1.0.0 build: `npm run build:tags && npm run build:typescript`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the learning-ts-module2@1.0.0 build script 'npm run build:tags && npm run build:typescript'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the learning-ts-module2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build:tags && npm run build:typescript
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs learning-ts-module2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls learning-ts-module2
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/simon/Desktop/learn-typescript-module2/npm-debug.log

npm-debug.log.txt

duongphuhiep commented 8 years ago

try

$ sudo npm install -g tsc   # install latest typescript transpiler globally
$ npm run build:tags        # transpile riot tags to javascript
$ tsc --project app         # transpile all typescripts in app/ to javascript
$ npm start                 # will open your browser, then you have to navigate to the 'app' folder