Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with network drives #42

Closed
LucaVazz opened this issue Mar 1, 2016 · 3 comments
Closed

Problem with network drives #42

LucaVazz opened this issue Mar 1, 2016 · 3 comments

Comments

@LucaVazz
Copy link

LucaVazz commented Mar 1, 2016

Hey everyone,
I try to run a lite-server instance which is supposed to serve files from a network-connected NTFS-drive.

This is my setup. It is based o the README-Guide. deleted

The Problem

At first, it starts fine. But after about 8 to 10 seconds, lite-server crashes.

Running npm install lite-server -g didn't help.

If i try to run it from a local harddrive, it works completely fine.

The Output

Console:
U:\lite_network-test>npm run dev

> [email protected] dev U:\lite_network-test
> lite-server

Did not detect a `bs-config.json` or `bs-config.js` override file. Using lite-server defaults...
** browser-sync options **
{ injectChanges: false,
  files: [ './**/*.{html,htm,css,js}' ],
  server: { baseDir: './', middleware: [ [Function], [Function] ] } }
[BS] Access URLs:
 ---------------------------------------
       Local: http://localhost:3000
       External: http://172.27.209.218:3000
 ---------------------------------------
          UI: http://localhost:3001
          UI External: http://172.27.209.218:3001
 ---------------------------------------
[BS] Serving files from: ./
[BS] Watching files...
16.03.01 10:55:21 304 GET /index.html
events.js:154
      throw er; // Unhandled 'error' event
      ^

Error: watch null UNKNOWN
    at exports._errnoException (util.js:856:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1296:21)

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v5.7.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dev: `lite-server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script 'lite-server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the lite-server_network-test package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     lite-server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs lite-server_network-test
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls lite-server_network-test
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     U:\lite_network-test\npm-debug.log
npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle [email protected]~predev: [email protected]
6 silly lifecycle [email protected]~predev: no script for predev, continuing
7 info lifecycle [email protected]~dev: [email protected]
8 verbose lifecycle [email protected]~dev: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~dev: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;U:\lite_network-test\node_modules\.bin;C:\Program Files\ConEmu;C:\Program Files\ConEmu\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Box\Box Edit\;C:\Program Files (x86)\IXOS\bin;C:\Program Files\nodejs\;C:\Users\luca.vazzano\Programs\apache-maven-3.3.3\bin;%USERPROFILE%\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\WebEx\Productivity Tools;C:\Program Files\setlX;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Sennheiser\SoftphoneSDK\;C:\Users\luca.vazzano\AppData\Roaming\npm;C:\Users\luca.vazzano\AppData\Local\Pandoc\
10 verbose lifecycle [email protected]~dev: CWD: U:\lite_network-test
11 silly lifecycle [email protected]~dev: Args: [ '/d /s /c', 'lite-server' ]
12 silly lifecycle [email protected]~dev: Returned: code: 1  signal: null
13 info lifecycle [email protected]~dev: Failed to exec dev script
14 verbose stack Error: [email protected] dev: `lite-server`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:232:16)
14 verbose stack     at emitTwo (events.js:100:13)
14 verbose stack     at EventEmitter.emit (events.js:185:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:100:13)
14 verbose stack     at ChildProcess.emit (events.js:185:7)
14 verbose stack     at maybeClose (internal/child_process.js:827:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid [email protected]
16 verbose cwd U:\lite_network-test
17 error Windows_NT 6.1.7601
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
19 error node v5.7.0
20 error npm  v3.6.0
21 error code ELIFECYCLE
22 error [email protected] dev: `lite-server`
22 error Exit status 1
23 error Failed at the [email protected] dev script 'lite-server'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the lite-server_network-test package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     lite-server
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs lite-server_network-test
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls lite-server_network-test
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
@LucaVazz
Copy link
Author

LucaVazz commented Mar 1, 2016

I have lite-server version 2.1.0, nodejs version 5.7.0 and npm version 3.6.0 installed.

@cgmartin
Copy link
Collaborator

cgmartin commented Apr 5, 2016

@LucaVazz the fix from #57 may help. Give lite-server v2.2.0 a try.

@LucaVazz
Copy link
Author

LucaVazz commented Apr 7, 2016

@cgmartin thank you very much! Now it works perfectly 😸

@LucaVazz LucaVazz closed this as completed Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants