husudosu/mpv-remote-node

Installation error

Closed this issue · 8 comments

mpv-remote : File C:\Users\USER\AppData\Roaming\npm\mpv-remote.ps1 cannot be loaded because running scripts is
disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1

  • mpv-remote # Follow instructions
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    

Open Powershell as admin and:

Set-ExecutionPolicy Unrestricted -Force
mpv-remote

And follow instructions.

2e90110 Updated README.

Did that, now I entered this npm update -g mpv-remote mpv-remote # Follow instructions and I am stuck on this for an hour:

npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. n 11541ms
[##################] \ reify:lodash: timing reifyNode:node_modules/mpv-remote/node_modules/node-gyp Completed in 14247ms

What's your node and NPM version?
You can check it by running node -v and npm -v
Maybe try 1.0.4, (it seems 1.0.5 has issues on some Windows machines)
You can install 1.0.4 by using this command (as admin on Windows):
First clear NPM cache npm cache clear --force
And:

npm install -g mpv-remote@1.0.4

And of course run mpv-remote and follow instructions.
If using 1.0.4 be sure you install 1.0.4 version of the Android app too! You can get it here

I'll fix these issues for next release. Something definetly went wrong with 1.0.5.

I did some reserarch yesterday night, it seems something went wrong with NPM itself, not with the package. I had the same results as yours both on Linux and Windows. Today it installed flawlessly after 5-6 seconds. Try to upgrade NPM to 8.5.0: npm install -g npm@8.5.0

Link to NPM issue

still not working.

You still stuck on NPM package installation?
What's your node and npm version?

Any updates? Did you try newer versions of mpv-remote-node?

Feel free to reopen the issue, if still having issues.