dochub
dochub copied to clipboard
TypeError: path.existsSync is not a function
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.
me too
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.