Git Product home page Git Product logo

vlc-static's Introduction

vlc-static

Static VLC binaries for Windows, MacOS and Linux.

Install

npm install vlc-static

Usage

import vlcStatic from 'vlc-static';

console.log(vlcStatic());
//=> 'C:\\Users\\richi\\Documents\\GitHub\\vlc-static\\bin\\win64\\vlc.exe'

API

vlcStatic()

vlc-static's People

Contributors

richienb avatar

Stargazers

Sergio Domingo-Hernando avatar Akshat avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

miguelexe

vlc-static's Issues

Error on install: "Only file and data URLs are supported by the default ESM loader"

I'm getting the following error when running npm install audic:

PS C:\PATH_TO_PROJECT> npm install audic     

> [email protected] install C:\PATH_TO_PROJECT\node_modules\vlc-static
> node install

internal/modules/run_main.js:54
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:698:11)
    at Loader.resolve (internal/modules/esm/loader.js:82:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:226:28)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:51:40)
    at link (internal/modules/esm/module_job.js:50:36) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

[...]

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Venryx\AppData\Roaming\npm-cache\_logs\2021-10-27T22_43_28_821Z-debug.log

And the log file it referenced has this:

5135 verbose stack Error: [email protected] install: `node install`
5135 verbose stack Exit status 1
5135 verbose stack     at EventEmitter.<anonymous> (C:\Root\Apps\NVM\v14.5.0\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
5135 verbose stack     at EventEmitter.emit (events.js:314:20)
5135 verbose stack     at ChildProcess.<anonymous> (C:\Root\Apps\NVM\v14.5.0\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
5135 verbose stack     at ChildProcess.emit (events.js:314:20)
5135 verbose stack     at maybeClose (internal/child_process.js:1051:16)
5135 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
5136 verbose pkgid [email protected]
5137 verbose cwd C:\PATH_TO_PROJECT
5138 verbose Windows_NT 10.0.19043
5139 verbose argv "C:\\Program Files\\NodeJS\\node.exe" "C:\\Program Files\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js" "install" "audic"
5140 verbose node v14.5.0
5141 verbose npm  v6.14.5
5142 error code ELIFECYCLE
5143 error errno 1
5144 error [email protected] install: `node install`
5144 error Exit status 1
5145 error Failed at the [email protected] install script.
5145 error This is probably not a problem with npm. There is likely additional logging output above.
5146 verbose exit [ 1, true ]

OS: Windows 10
NodeJS version: 14.5.0

I will keep investigating, but thought I'd post it here in case others hit it and/or know the solution.

Doesn't work with install scripts disabled

Install scripts must be run on install so that the VLC binaries can be downloaded but every user that runs npm config set ignore-scripts true won't have that happen.

Perhaps the binaries could be checked for and downloaded on runtime as well to work around this?

How to fix this error when installing `audic`

npm ERR! code 1
npm ERR! path D:\SomePath\node_modules\vlc-static
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node install
npm ERR! D:\SomePath\node_modules\download\node_modules\got\index.js:182
npm ERR!                                ee.emit('error', new got.RequestError(err, opts));
npm ERR!                                                 ^
npm ERR!
npm ERR! GotError [RequestError]: connect ETIMEDOUT 0000:000:0:3:0000:0000:0000:0:443
npm ERR!     at ClientRequest.<anonymous> (D:\SomePath\node_modules\download\node_modules\got\index.js:182:22)
npm ERR!     at Object.onceWrapper (node:events:628:26)
npm ERR!     at ClientRequest.emit (node:events:513:28)
npm ERR!     at TLSSocket.socketErrorListener (node:_http_client:494:9)
npm ERR!     at TLSSocket.emit (node:events:513:28)
npm ERR!     at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR!     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
npm ERR!   code: 'ETIMEDOUT',
npm ERR!   host: 'download.videolan.org',
npm ERR!   hostname: 'download.videolan.org',
npm ERR!   method: 'GET',
npm ERR!   path: '/pub/videolan/vlc/3.0.16/win64/vlc-3.0.16-win64.zip',
npm ERR!   protocol: 'https:',
npm ERR!   url: 'https://download.videolan.org/pub/videolan/vlc/3.0.16/win64/vlc-3.0.16-win64.zip'
npm ERR! }
npm ERR!
npm ERR! Node.js v18.12.1

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\-\AppData\Local\npm-cache\_logs\2023-06-12T08_57_57_631Z-debug-0.log

Environment

  • NodeJS: v18.12.1
  • NPM: 9.5.0
  • Audic: 3.0.2
  • OS: Windows 10

After I added C:\Program Files (x86)\VideoLAN\VLC\ to user path and restart VSCode it still throw error.

Publish latest version to NPM

Can you please publish the latest version to NPM? I'm trying to use Audic, but it won't work without this being updated as it cannot download the VLC binaries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.