mist-ce icon indicating copy to clipboard operation
mist-ce copied to clipboard

Installation of dev version: monaco-element

Open fotisAnagnostopoulos opened this issue 4 years ago • 2 comments

Hello,

This issue is not actually an issue, as the problem was solved but i think it will be helpful for others. Trying to install the dev version on Ubuntu 20.04.1 LTS, by following the instructions. When i run

$docker-compose exec ui npm install

the following error appears:

[..] npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/mistio/monaco-element.git npm ERR! npm ERR! fatal: not a git repository: /ui/../.git/modules/ui npm ERR! npm ERR! exited with error code: 128 [..]

It was deemed possible to come from https access to github, but after setting up an ssh one, the error was still there.

I found within the "mist-ce/ui/package.json" file the statement "monaco-element": "git+https://github.com/mistio/monaco-element.git". By "manually" running $npm install git+https://github.com/mistio/monaco-element.git, and then re-run $docker-compose exec ui npm install the problem was solved.

fotisAnagnostopoulos avatar Jan 31 '21 08:01 fotisAnagnostopoulos

@fotisAnagnostopoulos not working for me still facing the issue.

vinkvii avatar Feb 13 '21 15:02 vinkvii

It's because in docker work, the /ui directory is a submodule because mist-ce/ui is. However the /ui has no access to the parent submodule data, so git complains that it is not a repository. Deleting mist-ce/ui and then pulling the mist.ui repository (renaming it to ui), but leaving it a repository rather than a submodule did the trick.

DamianB-BitFlipper avatar Mar 02 '21 23:03 DamianB-BitFlipper