-
Notifications
You must be signed in to change notification settings - Fork 58
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
[email protected] fails to build binary at postinstall #35
Comments
|
|
Installing the following under Ubuntu 16.04 works for me:
|
hm... CI does not like this :\ why does the pre build binary does not work in the first place? |
I have no idea. I've never had an npm dependency that had an npm dependency that had an npm dependency that required an entire build chain of requirements. I spent about a day trying to get it working then gave up. |
On Amazon EC2:
VERY not happy I have to install all this crap on my build server to get it working. |
I don't feel very comfortable to read such a rude message. And I don't even develop the tool. Some people are thinking about it and it does not seem trivial. |
Well let's see what happens here...
This is all done so that https://www.unix.com/man-page/redhat/1/cjpeg/ That being said, one still seems to need to run the following to get So how to make this happen without having Have the script download tarballs from verified sources on fixed versions and install to All of these dependencies are standard and the installations and dependencies themselves can be locally cleaned up after Of course it would be nice if I put this into practice and made a pull request rather than just shit-talk on a thread, wouldn't it? So, what are your thoughts? |
The point is, rather than having to pick and pull from different statically-linked libraries that may or may not exist in varying distros of linux, it's better to pull all the dependencies and compile them from source locally without sudo such that the target binary, and then all the dependencies used to compile it can be cleaned up such that in the end, the only dependency needed in the first place, Such a strategy would give the widest success across the various flavors of linux, and probably BSD, but I haven't spent enough time in BSD-land. |
Every time I install mozjpeg in the same project folder, it always says the cjpeg binary doesn't seem to work correctly, and rebuild it again. I don't know why. |
@doochik @fiws Do you have a Package lock file that was generated from another OS? I faced this issue when a package-lock.json file was created in Windows system and then we tried to deploy the code in Jenkins(Linux) environment. Deleting the package-lock.json file solved the issue for me. |
Getting the same error. Removing the yarn.lock file and the node_modules, then reinstalling all the node modules solves it. |
same error on Centos. |
@debasishshanti you guessed right, it was generated on another os. But I recreated the package-lock on my (Linux) machine and it sadly did not fix the issue :( |
@fiws Try not to have that Package lock file in repository and check |
⚠ EACCES: permission denied, mkdir '/Users/zhangwen/Desktop/linkingfresh-project/tire/node_modules/mozjpeg/vendor' Error: callback() can only be called once. npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
This is most likely because you have node_modules created by root user. |
[email protected]
[email protected]
Ubuntu 14.04.5 LTS
The text was updated successfully, but these errors were encountered: