Trying to build Theia

I am new to Theia and try to start it according to the instructions given in Developing,md in the doc Directory. My Problem is that I constantly get an error when one of the postinstall scripts is run:

[4/5] Linking dependencies…
warning " > istanbul-instrumenter-loader@3.0.1" has unmet peer dependency “webpack@^2.0.0 || ^3.0.0 || ^4.0.0”.
warning " > tslint-language-service@0.9.9" has incorrect peer dependency “typescript@>= 2.3.1 < 3”.
warning “workspace-aggregator-ffa455e8-5ca7-4241-a7af-ea5c37596069 > @theia/application-manager > font-awesome-webpack@0.0.5-beta.2” has unmet peer dependency “font-awesome@>=4.3.0”.
warning “workspace-aggregator-ffa455e8-5ca7-4241-a7af-ea5c37596069 > @theia/debug > requestretry@3.1.0” has unmet peer dependency “request@2..”.
warning “workspace-aggregator-ffa455e8-5ca7-4241-a7af-ea5c37596069 > @theia/messages > react-perfect-scrollbar@1.5.3” has unmet peer dependency “react@>=16.3.3”.
warning “workspace-aggregator-ffa455e8-5ca7-4241-a7af-ea5c37596069 > @theia/messages > react-perfect-scrollbar@1.5.3” has unmet peer dependency “react-dom@>=16.3.3”.
warning “workspace-aggregator-ffa455e8-5ca7-4241-a7af-ea5c37596069 > @theia/scm > react-autosize-textarea@7.0.0” has unmet peer dependency “react@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning “workspace-aggregator-ffa455e8-5ca7-4241-a7af-ea5c37596069 > @theia/scm > react-autosize-textarea@7.0.0” has unmet peer dependency “react-dom@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning “workspace-aggregator-ffa455e8-5ca7-4241-a7af-ea5c37596069 > @theia/application-manager > font-awesome-webpack > less-loader@2.2.3” has incorrect peer dependency “less@^2.3.1”.
warning Workspaces can only be enabled in private projects.
[5/5] Building fresh packages…
[11/16] ⠂ vscode-ripgrep
[-/16] ⠂ waiting…
[-/16] ⠂ waiting…
[10/16] ⠄ oniguruma
error /home/laj/SRC/theia/node_modules/vscode-ripgrep: Command failed.
Exit code: 1
Command: node ./lib/postinstall.js
Directory: /home/laj/
Finding release for v11.0.1-2
throw er; // Unhandled ‘error’ event

Error: connect ECONNREFUSED
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
Emitted ‘error’ event at:
at TLSSocket.socketErrorListener (_http_client.js:392:9)
at TLSSocket.emit (events.js:198:13)

However, the proxy of my virtual machine is set correctly and i can access the requested site using a web browser. Any help is appreciated…


[original thread by califax2k]

Hi @lars-jordan, you can take a look at someone who has encountered the same problems previously:


@vince-fugnitto thanks for pointing me to the previous issues. Maybe I should have been a bit more specific. In my VM I am running Ubuntu 18.04 not Windows. However, I didn’t have a GITHUB_TOKEN yet, so I created it and placed it in the according env variable. I guess I don’t need to install the windows build tools npm package there…


Found the following: - doesn’t seem to be a Theia problem…

@lars-jordan thank you for your response and for pointing out the vscode-ripgrep issue. For my own information, have you seen and installed the prerequisties:

Hi @lars-jordan I think you’re right - this looks to be an issue with ripgrep itself, that we cannot do much to alleviate in Theia. If you’re just playing around and not doing anything too secret, you could open the Theia repo using Gitpod (, and be able to experiment from there.

note: Gitpod is an online development environment based on Theia, so you’d be using a Theia-based app as well to develop. The creators of Gitpod are also Theia committers, and interact on this Spectrum channel

Direct link to open latest Theia master in Gitpod (GitHub credentials work for Gitpod):


@vince-fugnitto I am using node 10.17.0, yarn 1.19.1, git 2.17.1 and python 2.7.15+. make, gcc and pkg-config are installed. If version 1.7.0 of yarn is an absolute requirement then I am not fulfilling it. If it’s a minimum requirement then I do. (maybe in that case it should be pointed out as such in the docs)

Everything looks fine, I was just curious as to troubleshoot the problem :slight_smile: The bug looks to be correctly identified as an issue with vscode-ripgrep itself as you mentioned.


it was mentioned in by @anton-kosyakov


Hey guys, what’s the recommended way to get Theia to work anyway when dependencies haven’t been downloaded yet. MS doesnt seem to move very fast :frowning:

I do not see a generic way to fix this type of thing. For ripgrep, there is a caching mechanism in the script that downloads the executable, so it’s not fetched every time. If you can create the cache directory before building and populate it with the version of ripgrep that would be downloaded, it looks like the download would be skipped. see:

On my Ubuntu machine, the cache directory is e.g.: /tmp/vscode-ripgrep-cache-1.2.5 and contains .


@marc-dumais thx, I’ll try that. Meanwhile a colleague had another idea. He looked at the yarn.lock file of a previous theia version and found that ripgrep 1.2.5 was used (as opposed to 1.5.7 now). He changed it back and now it works, too.