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

[0.8.0] i can't use \\fileserver\xx.js to run node file #3542

Closed
xunuo opened this issue Jun 26, 2012 · 2 comments
Closed

[0.8.0] i can't use \\fileserver\xx.js to run node file #3542

xunuo opened this issue Jun 26, 2012 · 2 comments
Assignees
Labels

Comments

@xunuo
Copy link

xunuo commented Jun 26, 2012

after installed nodejs 0.8. i can't use \fileserver\xx.js to run node file

for example:

C:\Users\nuo.xun>node \\10.20.157.43\f2ehint\lib\ide.js

fs.js:520
  return binding.lstat(pathModule._makeLong(path));
                 ^
Error: ENOENT, no such file or directory 'C:\10.20.157.43'
    at Object.fs.lstatSync (fs.js:520:18)
    at Object.realpathSync (fs.js:1025:21)
    at tryFile (module.js:142:15)
    at Function.Module._findPath (module.js:181:18)
    at Function.Module._resolveFilename (module.js:336:25)
    at Function.Module._load (module.js:280:25)
    at Module.runMain (module.js:487:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

before node 0.8.0 , it's worked!

still can't run with unc paths

C:>node file://10.20.157.43/f2ehint/lib/ide.js

module.js:340
throw err;
^
Error: Cannot find module 'C:\file:\10.20.157.43\f2ehint\lib\ide.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.runMain (module.js:487:10)

at process.startup.processNextTick.process._tickCallback (node.js:244:9)

@ghost ghost assigned piscisaureus Jun 26, 2012
@piscisaureus
Copy link

Found the cause:

> require('fs').realpathSync('\\\\piscisaureus\\e$\\a.js')
Error: ENOENT, no such file or directory 'C:\piscisaureus'

@xunuo
Copy link
Author

xunuo commented Jun 27, 2012

still can't run with unc paths

C:>node file://10.20.157.43/f2ehint/lib/ide.js

module.js:340
throw err;
^
Error: Cannot find module 'C:\file:\10.20.157.43\f2ehint\lib\ide.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.runMain (module.js:487:10)

at process.startup.processNextTick.process._tickCallback (node.js:244:9)

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

No branches or pull requests

2 participants