Spotify-Server icon indicating copy to clipboard operation
Spotify-Server copied to clipboard

npm install warnings and node web.js error

Open awmt102 opened this issue 11 years ago • 3 comments

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. (/Users/*****/Spotify/Spotify-Server/web.js:2:11) 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) at Function.Module.runMain (module.js:497:10)

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.

awmt102 avatar Nov 10 '13 22:11 awmt102

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?

awmt102 avatar Nov 10 '13 22:11 awmt102

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.

ahultgren avatar Nov 12 '13 18:11 ahultgren

I can confirm that renaming sample.config to .config gets the server listening on port 3000

stirlster avatar Nov 13 '13 15:11 stirlster