serverless-chrome: Create failing with ENOENT: no such file or directory
I’m trying to install on Windows, and whether I use cygwin or the native shell I run into this problem trying to create the service:
Jim-PC17 495 ~/workspace/jetsam$ serverless create -u https://github.com/adieuadieu/serverless-chrome/tree/master/examples/serverless-framework/ aws
Serverless: Generating boilerplate...
Serverless: Downloading and installing "examples\serverless-framework\aws"...
Serverless Error ---------------------------------------
Error: ENOENT: no such file or directory, link 'C:\Users\Jim\workspace\dist' -> 'C:\cygwin64\tmp\serverless-chrome\packages\lambda\integration-test\dist'
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: win32
Node Version: 8.9.3
Serverless Version: 1.24.1
I’m new to this stack, and I’m not sure if that cryptic error message means it can’t make a symlink or can’t find a symlink, or if it’s suggesting I make one. What I have figured out:
- C:\Users\Jim\workspace\dist doesn’t exist (and probably shouldn’t be created, as it’s outside the directory I’m trying to install into).
- C:\cygwin64\tmp\serverless-chrome\packages\lambda\integration-test does exist but has no dist subdir.
- I see in github dist is supposed to be a symlink that points up the tree, but I don’t see its target in github. Maybe it’s supposed to be created during the install? I haven’t figured out how to turn on enough logging to follow the install process.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 12
- Comments: 16
Any updates on this?
Any workarounds for this? I’ve tried a few things, including:
Run in GitBash as administrator Gives same error as reported by @jkellyinsf
Run in PowerShell as administrator Gives same error as reported by @jkellyinsf
Clone the repo (git@github.com:adieuadieu/serverless-chrome.git) then
invoke local
version-info as administratorI had to install chrome-launcher - shouldn’t this be a dev dependency by default?
In any case, once chrome-launcher is installed, I get the following error:
I manually removed the
.webpack
directory and retried invoking the service locally, but got the same error. Here’s the full output:My next step will be to try to rebuild the version-info function from scratch to see if I can spot any issues or get it working.
Any other suggestions for diagnosing/fixing/working-around this issue?
I get the issue on Ubuntu Linux and Windows, here is my error log for Ubuntu Linux running on CodeBuild. Doesn’t happen on my Mac machine 😦
Installed Linux, problem has gone.
Still doesn’t work. Maybe I have to migrate to Linux?..