npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mediacenterjs-spotify

v0.0.5

Published

WIP (Experimental): A Spotify app for MediacenterJS. Requires Node-Gyp to work.

Downloads

7

Readme

mediacenterjs-spotify-app

An app for mediacenterjs enabeling you to play spotify tracks.

version 0.0.1- Basic Spotify playback is working now. You can add your credentials in the settings menu and tracks will play directly through the speakers. Playback controls and song information will be implemented later.

Unzip contents of this Gitrepo in the root of MediacenterJS.

Then run the following commands in the root dir of mediacenterjs in terminal/command prompt :

npm install node-gyp

npm install spotify

npm install spotify-web

npm install lame

npm install speaker

These modules are dependent of node-Gyp to install on windows.

Setup issues

Windows and node-gyp

When you download this application through git (Either through zip or a GIT clone) It's possible you will get an error when trying to start the application. This is due to the fact that some modules have dependencies that need to be installed. So you need to run the install again.

npm install lame 
or/and
npm install sqlite3

If you run Windows it's likely this install will fail. Especially on a x64 machine because to install the dependencies, NPM uses a module called node-gyp. Which, in it's turn has dependencies as well. You need to install the following:

Windows 32 bits needs Microsoft Visual Studio C++ 2010 Express. Download here: (http://go.microsoft.com/?linkid=9709949)

Windows (7/8) 64 bits needs Microsoft Windows SDK 7.1 which includes visual studio. Download here: (http://www.microsoft.com/en-us/download/details.aspx?id=8279)

If you continue to have trouble installing the modules, Please read the documentation: (https://github.com/TooTallNate/node-gyp)

I Already have visual studio installed but it's a different version than 2010

An example of installing lame with visual studio 2012 on Windows:

npm install lame --msvs_version=2012

Version mismatch

If you get the following message:

Error: Module version mismatch. Expected 11, got 1.

You are running a different version of nodeJs then a certain module expects. You simply need to reinstall the module giving the error. for example:

Error: Module version mismatch. Expected 11, got 1.
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at bindings (C:\Users\Jan\Documents\GitHub\mediacenterjs\node_modules\lame\node_modules\bindings\bindings.js:76:44)
    at Object.<anonymous> (C:\Users\Jan\Documents\GitHub\mediacenterjs\node_modules\lame\lib\bindings.js:1:99)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12

Indicates that the module Lame is generating the error. so simply type the following to reinstall the module:

npm install lame