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
When running node build --all It fails (Error: Command failed: npm ci.) #14
Comments
Can you help to find out. I'm dealing with a few dozens issues daily, it's really hard for me. |
I tried on my environment and it worked w/o errors. |
It is weird i think this is an issue with silicon M1 chips, cause i can see that the script doesn't get passed npm ci (cp.execSync("npm ci", {cwd: './site', stdio: 'ignore'});) it stops here. i will keep looking to see if i can manage to fix this on my environment. |
@rabiibrahimi I have a similar issue. What is the fix here? |
I made some progress here. from This gets me past the npm stage but now i'm getting an error on the next line cp.execSync("grunt", {cwd: './site', stdio: 'ignore'}); I tried but that doesn't work. I see that Gruntfile.js in /site has a bunch of cwd references as well. Is this some issue on intel mac understanding cwd ? UPDATE It looks like this won't build at all with node v20.* on my intel mac only node v16.* seems to be working with this. So here is how I got this to work for anyone who wants to save hours and hours... brew remove node |
i have solved it by downgrade node and npm so currently i use these versions: and it works now. guess it is issue with version compatibility. |
Well, I’m glad the solution is on the internet somewhere now to save someone else hours of wasted time. Maybe Yuri can update the Readme to advise only node v16.* npm 8.* is compatible for building or update this to use a more recent version of node. Homebrew actually installs node and npm together when installing node package. On Apr 20, 2023, at 8:32 AM, Rabii Brahimi ***@***.***> wrote:
i have solved it by downgrade node and npm so currently i use these versions:
node v16.19.1
npm 8.19.3
and it works now. guess it is issue with version compatibility.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
M1/M2 macs don't work with version 16, so there is no way to fix the issue because version 14 is incompatible. The issue with 16 is as follows:
I have not found a solution yet. |
it does i am on M1 Pro and using node v16.19.1 and npm v8.19.3 and it works fine. just for your info i am using laravel valet for dev env. |
You must have not installed it recently or without needing to install the chromium binary. npm will not resolve the chromium dependency. |
I am using brew package manager. If you have any specific instructions on how to upgrade node and npm using brew so this works please advise.
From: Anthony Andriano ***@***.***>
Date: Thursday, May 25, 2023 at 1:16 PM
To: espocrm/ext-template ***@***.***>
Cc: czcpf ***@***.***>, Comment ***@***.***>
Subject: Re: [espocrm/ext-template] When running node build --all It fails (Error: Command failed: npm ci.) (Issue #14)
You must have not installed it recently or without needing to install the chromium binary. npm will not resolve the chromium dependency.
—
Reply to this email directly, view it on GitHub<#14 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVBA57M7T3R6C34ILZ25QC3XH6OWBANCNFSM6AAAAAAVOTGVHA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I am usingnode v16.19.1npm 8.19.3And it works. It stops working when you go above that as far as I can tell. On May 25, 2023, at 2:06 PM, ***@***.*** wrote:
@font-face { font-family: "Cambria Math"; }
@font-face { font-family: Calibri; }
p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif; }
a:link, span.MsoHyperlink { color: blue; text-decoration: underline; }
span.EmailStyle19 { font-family: Calibri, sans-serif; color: windowtext; }
.MsoChpDefault { font-size: 10pt; }
@page WordSection1 { size: 8.5in 11in; margin: 1in; }
div.WordSection1 { page: WordSection1; }
I am using brew package manager. If you have any specific instructions on how to upgrade node and npm using brew so this works please advise.
From:
Anthony Andriano ***@***.***>
Date: Thursday, May 25, 2023 at 1:16 PM
To: espocrm/ext-template ***@***.***>
Cc: czcpf ***@***.***>, Comment ***@***.***>
Subject: Re: [espocrm/ext-template] When running node build --all It fails (Error: Command failed: npm ci.) (Issue #14)
You must have not installed it recently or without needing to install the chromium binary. npm will not resolve the chromium dependency.
—
Reply to this email directly,
view it on GitHub, or
unsubscribe.
You are receiving this because you commented.Message
ID: ***@***.***>
|
You are right, this was solved couple months for my Mac M1. |
I gave up trying to make this work in OSX with an M1 processor:
Nothing has worked. Now I'm trying in Docker. Using linux/arm64, which is the default platform for my system, didn't work due lack of arm64 support for PhantomJS. Switching to linux/amd64 pushed the process forward, but now grunt is missing.
This site says to do the following: Once that was resolved, the process fails again:
Running the file directly shows the error:
I don't know what to do at this point. |
I have had same and it was just database, before running node build --all MAKE SURE YOU HAVE CREATED A DATABASE IN MYSQL. |
On an M1 mac, you have to do this:
Once that has been done, it seems to work. Note: it is important to watch the log files in Here is my setup:
|
I can't run node build --all it always failed Error: Command failed: npm ci.
I am using macbook pro M1. any idea whyl npm ci fails.
node version: v19.6.1
npm version: 9.5.0
The text was updated successfully, but these errors were encountered: