dochub icon indicating copy to clipboard operation
dochub copied to clipboard

TypeError: path.existsSync is not a function

Open naeplus opened this issue 8 years ago • 2 comments

When I try to run node web.js it gives me following error:

TypeError: path.existsSync is not a function

PS. I run node web.js after running npm install.

naeplus avatar Dec 12 '15 18:12 naeplus

me too

megirfanoff avatar Apr 26 '16 10:04 megirfanoff

E:\workspace\dochub>npm install npm WARN [email protected] No repository field. npm WARN [email protected] No license field.

E:\workspace\dochub>node web.js E:\workspace\dochub\node_modules\requirejs\bin\r.js:2267 if (path.existsSync(url)) { ^

TypeError: path.existsSync is not a function at requirejsVars.nodeLoad.req.load (E:\workspace\dochub\node_modules\require js\bin\r.js:2267:18) at resume (E:\workspace\dochub\node_modules\requirejs\bin\r.js:1282:65) at Object.require (E:\workspace\dochub\node_modules\requirejs\bin\r.js:1481: 25) at requirejs (E:\workspace\dochub\node_modules\requirejs\bin\r.js:1684:24) at Object. (E:\workspace\dochub\web.js:10:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3)

zhangkma avatar Aug 31 '17 08:08 zhangkma