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

Windows support #11

Closed
Rich-Harris opened this issue Dec 17, 2017 · 1 comment
Closed

Windows support #11

Rich-Harris opened this issue Dec 17, 2017 · 1 comment

Comments

@Rich-Harris
Copy link
Member

Looks like Sapper doesn't work on Windows yet...

C:\Apps\Testarea\svelte\_sapper>npm run dev

> TODO@0.0.1 dev C:\Apps\Testarea\svelte\_sapper
> node server.js

fs.js:1214
  binding.utimes(pathModule._makeLong(path), atime, mtime);
          ^
Error: EINVAL: invalid argument, utime 'C:\Apps\Testarea\svelte\_sapper\.sapper\main.js'
    at Object.fs.utimesSync (fs.js:1214:11)
    at create_client_main (C:\Apps\Testarea\svelte\_sapper\node_modules\sapper\lib\utils\create_app.js:33:6)
    at create_app (C:\Apps\Testarea\svelte\_sapper\node_modules\sapper\lib\utils\create_app.js:54:2)
    at connect (C:\Apps\Testarea\svelte\_sapper\node_modules\sapper\lib\index.js:22:2)
    at Object.<anonymous> (C:\Apps\Testarea\svelte\_sapper\server.js:20:9)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! TODO@0.0.1 dev: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the TODO@0.0.1 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\bin\npm-cache\_logs\2017-12-17T21_11_38_903Z-debug.log
@tomcon
Copy link

tomcon commented Dec 17, 2017

Maybe this is the fix @Rich-Harris
nodejs/node#5561

After several tests, I have found the solution:
atime and mtime parameters must be instances of Date().

Rich-Harris added a commit that referenced this issue Dec 18, 2017
use atime.getTime() and mtime.getTime() - hopefully fixes #11
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

2 participants