-
-
Save BuonOmo/b1beff2e134ad1e9f67293085790b80e to your computer and use it in GitHub Desktop.
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 |
thx!
When I enter these commands into the console to install ungit,
the following errors appear. Can you help?
WARN engine [email protected]: wanted: {"node":">=10.18"} (current: {"node":"8.10.0","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=10.18"} (current: {"node":"8.10.0","loadDep:yargs → addNamed ▐ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: 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
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.
Thanks for this!