-
Notifications
You must be signed in to change notification settings - Fork 227
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
Windows support? #89
Comments
I managed to get past that error, but |
Running as administrator fixed it for me. |
We've fixed this issue and created a PR for it, however this project hasn't been updated really since February. There are 2 current issues people get with the symbolic link problem. The permissions problem and a EPERM scandir problem because the link to node_modules is invalid in the .build directory. We created an NPM module with our fix in it for those that want to use it https://www.npmjs.com/package/@hewmen/serverless-plugin-typescript |
@GhostfromTexas I appreciate your effort. Unfortunately it doesn't seem to work for me, as I'm getting the exact same error as before: EPERM: operation not permitted, symlink '[source_dir]\package.json' -> '[source_dir].build\package.json' I basically installed your NPM package and imported it in my severless.yml plugins section, removing the old serverless-plugin-typescript. Don't know if I'm doing something wrong... |
Hmm - Try an elevated console and see if that works. We might have only solved part of that problem |
Mixed experiences for me, hewmen/serverless-plugin-typescript has no errors for me when packaging from windows, but the packaging also doesn't correctly exclude dev dependencies (either on windows or linux) |
I wonder if the dev-dependency exclusion is on the original version as well. The only problem we pushed a change for was the symbolic linking. Excluding dev dependencies might be an unrelated bug, or maybe a bug we caused? |
I don't think the changes made anything worse, but I only hit the EPERM scandir problem when I was trying to exclude dev dependencies, so it's all somewhat related. fwiw/ the underlying calls to It doesn't seem to work the same; when I interrupt |
Hmm.. We exclude dev dependencies on ours as well and don't see the EPERM scandir problem anymore with the HEWMEN version. So looks like there are some more edge cases that are causing the same problems to pop up. What we saw originally was the build failing at the packaging step, and from the looks of the .build folder structure, the symlink to the "node_modules" directory was created as a file and not a folder. So looking like there are 3-4 issues then... weee! |
Packaging on Windows is producing much smaller packages when I set the NODE_PRESERVE_SYMLINKS=1 environment variable. I'm not yet certain that's fixed dev dependency exclusion, but it seems to have so far. |
🎉 This issue has been resolved in version 1.1.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Does this plugin work on windows?
I get the following error when I attempt to use this plugin.
The text was updated successfully, but these errors were encountered: