[PLUGIN] YouTube Cast Receiver

@sthan21 it seems your power supply has a under voltage you need a good higher power supply…
not a problem of a plugin…

@sthan21 , could you access the logs via SSH? After ssh into your Volumio, run

sudo journalctl -f -u volumio

If Volumio service crashes and restarts, the logs will show what’s happening. You can copy and paste that part to me (from the point you deactivate the plugin)

1 Like

Unfortunately I have the same error during the installation.
The command sudo ln -s /usr/bin/npm /usr/local/bin/npm does nothing. It gives me: failed to create symbolic link '/usr/local/bin/npm': File exists. On another thread for another plugin there was a tip npm i. Unfortunately it didn`t help either.
Does anyone have an idea for me how to get this plugin installed.
My hardware: Raspberry Pi 3 B+

@NatureGuy, what same error are you referring to? It would be helpful to copy-and-paste the output of volumio plugin install

@giorgosperi , could you ssh into both devices and run ifconfig and pm the result to me (also tell me which device is visible to both desktop and mobile and which is visible only to mobile)?

Oh sorry, I’m new to the forum, I thought I was commenting on the right thing.
I get the following error message when trying to install the plugin:

root@schlafzimmer-volumio:/home/volumio/ytcr-plugin/volumio-ytcr# volumio plugin install

This command will install the plugin on your device

Compressing the plugin
No modules found, running "npm install"
/bin/sh: 1: /usr/local/bin/npm: not found
Error installing node modules: Error: Command failed: /usr/local/bin/npm install --production
/bin/sh: 1: /usr/local/bin/npm: not found

/bin/mv: cannot stat '*.zip': No such file or directory
child_process.js:644
    throw err;
    ^

Error: Command failed: /bin/mv *.zip /tmp/plugins/ytcr.zip
/bin/mv: cannot stat '*.zip': No such file or directory

    at checkExecSyncError (child_process.js:601:13)
    at execSync (child_process.js:641:13)
    at install (/volumio/pluginhelper.js:689:9)
    at Object.<anonymous> (/volumio/pluginhelper.js:751:9)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)

What do you get when you do:

ls -l /usr/local/bin/npm

I get the folowing:
lrwxrwxrwx 1 root root 12 May 3 07:36 /usr/local/bin/npm -> /usr/bin/npm

1 Like

It looks like npm is not installed…what Volumio version are you on?

And what do you get if you do this:

whereis npm

I get:

npm: /bin/npm /usr/local/bin/npm /usr/share/npm /usr/share/man/man1/npm.1.gz /usr/share/man/man3/npm.3.gz

Volumio is Version: 2.873

I think the problem is that you are logged as root. Logout and SSH with Volumio as user.

@NatureGuy

I think the symbolic link is also wrong. It’s now pointing to /usr/bin/npm instead of /bin/npm

sudo ln -sf /bin/npm /usr/local/bin/npm

should fix it

Weird as why would it be different? I never met problem installing plugins…

1 Like

He mentioned above that he ran sudo ln -s /usr/bin/npm /usr/local/bin/npm which applies to Buster based Volumio. This probably messed up the original link.

Thanks, I tried again with the installation.
I still get an error, but this one is a little different:


This command will install the plugin on your device

Compressing the plugin
No modules found, running "npm install"
npm WARN npm npm does not support Node.js v8.11.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! URL is not defined

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-05-03T15_25_32_322Z-debug.log
Error installing node modules: Error: Command failed: /usr/local/bin/npm install --production
npm WARN npm npm does not support Node.js v8.11.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! URL is not defined

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-05-03T15_25_32_322Z-debug.log

/bin/mv: cannot stat '*.zip': No such file or directory
child_process.js:644
    throw err;
    ^

Error: Command failed: /bin/mv *.zip /tmp/plugins/ytcr.zip
/bin/mv: cannot stat '*.zip': No such file or directory

    at checkExecSyncError (child_process.js:601:13)
    at execSync (child_process.js:641:13)
    at install (/volumio/pluginhelper.js:689:9)
    at Object.<anonymous> (/volumio/pluginhelper.js:751:9)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)

Did you at any point upgraded your npm?

When you just run npm , what version does it report?

If you did upgrade your npm, then you might as well start off with a fresh Volumio…

If im typing npm I get:

npm WARN npm npm does not support Node.js v8.11.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm <command>

Usage:

npm install        install all the dependencies in your project
npm install <foo>  add the <foo> dependency to your project
npm test           run this project's tests
npm run <foo>      run the script named <foo>
npm <command> -h   quick help on <command>
npm -l             display usage info for all commands
npm help <term>    search for help on <term>
npm help npm       more involved overview

All commands:

    access, adduser, audit, bin, bugs, cache, ci, completion,
    config, dedupe, deprecate, diff, dist-tag, docs, doctor,
    edit, exec, explain, explore, find-dupes, fund, get, help,
    hook, init, install, install-ci-test, install-test, link,
    ll, login, logout, ls, org, outdated, owner, pack, ping,
    prefix, profile, prune, publish, rebuild, repo, restart,
    root, run-script, search, set, set-script, shrinkwrap, star,
    stars, start, stop, team, test, token, uninstall, unpublish,
    unstar, update, version, view, whoami

Specify configs in the ini-formatted file:
    /root/.npmrc
or on the command line via: npm <command> --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

npm@7.11.2 /lib/node_modules/npm

I have the feeling something is wrong with this volumio installation

I would suggest you start with a fresh installation.

npm 7.11.2 is the current latest version and should not be used on Volumio 2.x.

Thank you.
I will try ist. Hopefully ist would work

Not aimed at @patrickkfkan but this illustrates a big problem when people are doing command line installations without really understanding what they are doing. I’ve no solution either. :grimacing: