Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Need help with a .JS file
New Posts  All Forums:Forum Nav:

Need help with a .JS file

post #1 of 10
Thread Starter 
--original problems sorted--

new problem,
Everytime i try to run my .js file i get

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #<Object> has no method 'staticProvider'
at HTTPServer.<anonymous> (/home/Tyler/facemash.js:8:25)
at HTTPServer.configure (/usr/local/lib/node/.npm/express/2.2.2/package/lib/
http.js:445:8)
at Object.<anonymous> (/home/Tyler/facemash.js:6:5)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array.<anonymous> (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)

help please.
Edited by luckypunk - 4/19/11 at 4:11pm
post #2 of 10
This may seem like a stupid question... but have you actually navigated to the folder that you just unzipped before attempting the ./configure?...
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
post #3 of 10
Thread Starter 
yes, i unzipped it to c:\\, so the directory is c:\
ode-v0.4.6 and yes i am in the directory in cygwin
post #4 of 10
Thread Starter 
-----fixed-----
Edited by luckypunk - 4/19/11 at 4:08pm
post #5 of 10
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
post #6 of 10
Thread Starter 
Quote:
Originally Posted by Plex View Post
gracias, i got npm installed now but im still getting the errors when trying to install express
post #7 of 10
Unexpected EOF can sometimes occur with a corrupted tar, have you tried downloading it again?
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
post #8 of 10
Thread Starter 
Quote:
Originally Posted by Plex View Post
Unexpected EOF can sometimes occur with a corrupted tar, have you tried downloading it again?
done & done
Edited by luckypunk - 4/19/11 at 4:09pm
post #9 of 10
Thread Starter 
Ok i turns out i had to clear the cache, now onto my final problem

Everytime i try to run my .js file i get

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #<Object> has no method 'staticProvider'
at HTTPServer.<anonymous> (/home/Tyler/facemash.js:8:25)
at HTTPServer.configure (/usr/local/lib/node/.npm/express/2.2.2/package/lib/
http.js:445:8)
at Object.<anonymous> (/home/Tyler/facemash.js:6:5)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array.<anonymous> (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)
post #10 of 10
Thread Starter 
anyone?
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Need help with a .JS file