Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

TypeError: path.existsSync is not a function #48

Open
naeplus opened this issue Dec 12, 2015 · 2 comments
Open

TypeError: path.existsSync is not a function #48

naeplus opened this issue Dec 12, 2015 · 2 comments

Comments

@naeplus
Copy link

naeplus commented Dec 12, 2015

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.

@megirfanoff
Copy link

me too

@zhangkma
Copy link

E:\workspace\dochub>npm install
npm WARN dochub-backend@1.0.1 No repository field.
npm WARN dochub-backend@1.0.1 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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants