Spotify-Server
Spotify-Server copied to clipboard
npm install warnings and node web.js error
I get the following warnings when running npm install:
npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] No repository field. npm http GET https://registry.npmjs.org/nodefly npm http 304 https://registry.npmjs.org/nodefly
and the following error when running node web.js:
module.js:340
throw err;
^
Error: Cannot find module './.config'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.
I am unsure if this is a problem with my setup or instruction following or if it is a problem with the code or installation instructions.
UPDATE: browsing to https://registry.npmjs.org/nodefly throws a certification error - perhaps this is the problem? Would using http instead of https prevent this?
There's a sample.config which should be copied to .config(.js, can't remember if it matters) and used for nodefly keys. Not that I ever got any useful metrics out of nodefly anyway, so that part could just be thrown out the window I suppose.
I can confirm that renaming sample.config to .config gets the server listening on port 3000