theia: Problems building Theia under Windows 10
I tried to build Theia under Window 10 with following setup:
- Node 8.0.0
- npm 4.5.0
- tsc 2.3.2
- GIT Bash : 2.10.0.windows.1
I pulled the newest version of Theia some minutes ago (2017-06-12).
I followed the steps in doc/Developing.md:
Everything worked fine until trying the examples:
First I tried example Browser: Step npm run bootstrap worked fine. Step npm start ended in missing dependencies
- concurrently
- webpack-dev-server
- bunyan
- webpack
- rimraf
And after installing these modules an error message was printed that the lib folder ist missing.
I tried then a npm run cold:start and got following error:
browser-example@0.0.1-alpha.1 lint D:\git_2\external\theia\examples\browser tslint -c …/…/config/tslint/tslint.json --project ./tsconfig.json
Warning: The ‘no-use-before-declare’ rule requires type checking
ERROR: src/backend/main.ts[41, 1]: unused expression, expected an assignment or function call
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! browser-example@0.0.1-alpha.1 lint: tslint -c ../../config/tslint/tslint.json --project ./tsconfig.json
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the browser-example@0.0.1-alpha.1 lint script ‘tslint -c …/…/config/tslint/tslint.json --project ./tsconfig.json’.
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 browser-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tslint -c …/…/config/tslint/tslint.json --project ./tsconfig.json
I have no idea how to continue.
Then I tried the electron example: I had to install the electron module.
After running npm start I got a Windows error dialog with the message: Unable to find Electron app at D:\git_2\external\theia\examples\electron\lib\frontend\electron-main.js
Then I tried also npm run cold:start and got the same message as for the browser example:
$ npm run cold:start
electron-example@0.0.1-alpha.1 cold:start D:\git_2\external\theia\examples\electron npm run clean && npm run build && npm start
electron-example@0.0.1-alpha.1 clean D:\git_2\external\theia\examples\electron rimraf lib
electron-example@0.0.1-alpha.1 build D:\git_2\external\theia\examples\electron npm run build:localdeps && npm run build:backend && npm run build:frontend
electron-example@0.0.1-alpha.1 build:localdeps D:\git_2\external\theia\examples\electron ldm run build && ldm sync
theia-core: npm run build
electron-example@0.0.1-alpha.1 build:backend D:\git_2\external\theia\examples\electron tsc && npm run lint
electron-example@0.0.1-alpha.1 lint D:\git_2\external\theia\examples\electron tslint -c …/…/config/tslint/tslint.json --project ./tsconfig.json
Warning: The ‘no-use-before-declare’ rule requires type checking
ERROR: src/backend/main.ts[41, 1]: unused expression, expected an assignment or function call
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! electron-example@0.0.1-alpha.1 lint: tslint -c ../../config/tslint/tslint.json --project ./tsconfig.json
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the electron-example@0.0.1-alpha.1 lint script ‘tslint -c …/…/config/tslint/tslint.json --project ./tsconfig.json’.
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 electron-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tslint -c …/…/config/tslint/tslint.json --project ./tsconfig.json
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron-example
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls electron-example
npm ERR! There is likely additional logging output above.
How can I build Theia under Windows 10? Do I have to install different versions or what is wrong in my setup?
With regards, Udo
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 33 (20 by maintainers)
Logging file from ´npm run cold:start´ in folder examples/electron
2017-06-12T08_52_44_788Z-debug.txt