Skip to content

Instantly share code, notes, and snippets.

@BuonOmo
Last active March 2, 2020 07:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BuonOmo/b1beff2e134ad1e9f67293085790b80e to your computer and use it in GitHub Desktop.
Save BuonOmo/b1beff2e134ad1e9f67293085790b80e to your computer and use it in GitHub Desktop.
install ungit on Ubuntu 16.04
sudo apt-get install nodejs-legacy nodejs npm
npm config set prefix ~/npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo -H npm install -g ungit
@seungha-kim
Copy link

typo in /usr/bin/mode

@technogeek157
Copy link

Thanks for this!

@den385
Copy link

den385 commented Mar 22, 2019

thx!

@DireStraits01
Copy link

When I enter these commands into the console to install ungit,
the following errors appear. Can you help?

WARN engine ungit@1.5.4: wanted: {"node":">=10.18"} (current: {"node":"8.10.0","npm":"3.5.2"})
WARN engine ungit@1.5.4: wanted: {"node":">=10.18"} (current: {"node":"8.10.0","loadDep:yargs → addNamed ▐ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine diff2html@3.1.2: wanted: {"node":">=10.13"} (current: {"node":"8.10.npm ERR! Linux 5.3.0-40-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "ungit"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror http://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /home/direstraits/npm-debug.log

@BuonOmo
Copy link
Author

BuonOmo commented Mar 2, 2020

I just fixed the typo indicated by @seungha-kim, I you had just copy pasted, try again.

Otherwise, it's been a while since I haven't been using Ubuntu unfortunately. You may have better luck opening an issue on the Ungit repository (linking this as ref maybe). You should also include details about your nodejs and npm version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment