mist-ce
mist-ce copied to clipboard
Installation of dev version: monaco-element
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 not working for me still facing the issue.
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.