mopidy.js icon indicating copy to clipboard operation
mopidy.js copied to clipboard

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

Open arthurlutz opened this issue 3 years ago • 2 comments

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 https://github.com/emiloberg/node-red-contrib-mopidy/issues/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 avatar Mar 22 '21 14:03 arthurlutz

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 ?

arthurlutz avatar Mar 22 '21 14:03 arthurlutz

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.

djmattyg007 avatar Jul 27 '21 22:07 djmattyg007