Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get tracklist.add to work (from node-red and node-red-contrib-mopidy) #42

Open
arthurlutz opened this issue Mar 22, 2021 · 2 comments

Comments

@arthurlutz
Copy link

Hi, thanks for developing and maintaining mopidy.js, I use it almost daily through my nodered setup with https://github.com/emiloberg/node-red-contrib-mopidy/ and it works great !

I'm having trouble writing a function that loads 20 random tracks from my library as described in emiloberg/node-red-contrib-mopidy#11

I'm not sure what I'm doing wrong and I seem to have gone through a number of combinations ('uris', 'tracks', etc.) without success.

Any tips on how to tackle this problem ?

@arthurlutz
Copy link
Author

Investigating I find that my version of mopidy.js is 0.5.0 (node 10.24 & npm 5.8). If that's too old I can't seem to be able to upgrade it

pi@music:~ $ npm install mopidy
(node:27481) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN npm npm does not support Node.js v10.24.0
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 Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! glob.hasMagic is not a function
npm ERR! glob.hasMagic is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2021-03-22T14_28_54_426Z-debug.log

Is there a minimum requirement for the version 1.x ?

@djmattyg007
Copy link
Contributor

It looks like you're using a version of npm that's also horribly out of date. While the output doesn't state the version of npm you're using, if it thinks Node.js v9 is the latest release it's probably multiple years out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants