question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation fails on youtube-dl - Installation dependencies?

See original GitHub issue

Hello,

I’m installing the most recent version of node an npm via these instructions: https://websiteforstudents.com/install-the-latest-node-js-and-nmp-packages-on-ubuntu-16-04-18-04-lts/

When i run npm install -g udacimak I get the following error:

> youtube-dl@1.12.2 postinstall /usr/lib/node_modules/udacimak/node_modules/youtube-dl
> node ./scripts/download.js

/usr/lib/node_modules/udacimak/node_modules/mkdirp/index.js:90
                    throw err0;
                    ^

Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/udacimak/node_modules/youtube-dl/bin'
    at Object.fs.mkdirSync (fs.js:885:18)
    at Function.sync (/usr/lib/node_modules/udacimak/node_modules/mkdirp/index.js:71:13)
    at createBase (/usr/lib/node_modules/udacimak/node_modules/youtube-dl/lib/downloader.js:51:12)
    at downloader (/usr/lib/node_modules/udacimak/node_modules/youtube-dl/lib/downloader.js:64:5)
    at Object.<anonymous> (/usr/lib/node_modules/udacimak/node_modules/youtube-dl/scripts/download.js:3:1)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! youtube-dl@1.12.2 postinstall: `node ./scripts/download.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the youtube-dl@1.12.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I’m new to node and npm but know linux and other languages pretty well. I’m clearly missing something here.

Is there a specific way i need to install youtube-dl? I’m on ubuntu 16.04

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
udacimakcommented, Nov 26, 2018

Have you tried sudo npm i -g udacimak?

If that doesn’t work, try installing yarn and install via yarn instead and let me know if it works?

npm i -g yarn
# then
yarn global add udacimak
7reactions
adarshaUcommented, Dec 26, 2018

This works for me. sudo npm install -g udacimak --unsafe-perm=true --allow-root

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to install youtube-dl [duplicate]
The package is likely outdated so useless. You should just install manually & update every couple of weeks or if it breaks.
Read more >
Cannot install Youtube-dl - General Linux Question
I have just installed linuxmint 20, and am having problems installing Youtube-dl. I've tried from the package manager, and also the command ...
Read more >
Unable to install Youtube-dl and GUI SOLVED
The other issue I face is that I can't install the youtube-dl GUI. ... "Dependency is not satisfiable: python-twodict (>= 1.2)
Read more >
How to install youtube-dl (the easy way) - jcutrer.com
Steps to Install youtube-dl using python/pip. This method assumes you already have python and pip installed # python 2.7 sudo pip install ......
Read more >
How to Install Youtube-DL on Windows
We'll start off with download and installing Youtube-DL. ... Command Prompt and try to use the command youtube-dl you'll still get an error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found