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

Windows: EPERM: operation not permitted, symlink #1969

Closed
ArturChe opened this issue Nov 15, 2019 · 6 comments
Closed

Windows: EPERM: operation not permitted, symlink #1969

ArturChe opened this issue Nov 15, 2019 · 6 comments

Comments

@ArturChe
Copy link

ArturChe commented Nov 15, 2019

Hi all.
On our project, we are using the AWS Lambda function written for Node.js 8.10 target platform.
And our Teamcity server is running on Windows AMI.
That is why we are using the post-install hook to change the windows bin of Sharp lib to the Linux one with such cmd:

rd /s /q "node_modules\sharp"
npm install --arch=x64 --platform=linux --target=8.10.0 sharp

Now I'm trying to migrate to the Node.js 10.x and the cmd:
npm install --arch=x64 --platform=linux --target=10.15.0 sharp
gives me something that I cant understood correctly:

ERR! sharp EPERM: operation not permitted, symlink 'libpng16\pngconf.h' -> '...\node_modules\sharp\vendor\include\pngconf.h'

gyp ERR! configure error
gyp ERR! stack Error: Command failed: ...\AppData\Local\Programs\Python\Python36-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax

As I understood, it tries to load the 'libvips' and build the bin on my local Windows PC using Python for Linux one?

Does it the correct way to install Sharp lib and how it would be on Teamcity.
Or there is another correct way to do this migration?

I do not know much about NodeJS and all this stuff.
Thanks!

@lovell
Copy link
Owner

lovell commented Nov 15, 2019

The message EPERM: operation not permitted, symlink suggests there's a filesystem or user permission problem involving the creation of symlinks during installation. Please ensure you're using a filesystem that supports these and a user with permissions to do so.

@lovell lovell changed the title AWS Node.js 8.10 Deprecation Windows: EPERM: operation not permitted, symlink Nov 15, 2019
@lovell
Copy link
Owner

lovell commented Nov 15, 2019

See also #1671

@ArturChe
Copy link
Author

Yep, that works!

@andresmv94
Copy link

In my case was the antivirus !!

@myagizmaktav

This comment was marked as off-topic.

@yashtomar15

This comment was marked as off-topic.

Repository owner locked and limited conversation to collaborators Dec 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants