Skip to content

node build -all on Windows 11: 'Command failed: grunt' #30

Open
@serg0307

Description

@serg0307

Hello, my new friends.
I get an error while running node build --all:

Fetching EspoCRM repository...
  Downloading EspoCRM archive from Github...
  Unzipping...
Installing EspoCRM instance...
  Creating config...
  Npm install...
  Building...
node:internal/errors:984
  const err = new Error(message);
              ^

Error: Command failed: grunt
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at checkExecSyncError (node:child_process:890:11)
    at Object.execSync (node:child_process:962:15)
    at buildEspo (file:///D:/work/FORT/extentions/fort2/node_modules/espo-extension-tools/build.js:284:8)
    at file:///D:/work/FORT/extentions/fort2/node_modules/espo-extension-tools/build.js:205:9
    at new Promise (<anonymous>)
    at install (file:///D:/work/FORT/extentions/fort2/node_modules/espo-extension-tools/build.js:199:12)
    at file:///D:/work/FORT/extentions/fort2/node_modules/espo-extension-tools/build.js:28:25 {
  status: 3,
  signal: null,
  output: [ null, null, Buffer(0) [Uint8Array] [] ],
  pid: 21700,
  stdout: null,
  stderr: Buffer(0) [Uint8Array] []
}

Node.js v20.14.0

Steps to recreate:

  1. git clone https://github.com/espocrm/ext-template
  2. Create config.json by copying config-default.json
  3. Create config.php with text
    <?php return [ 'useCacheInDeveloperMode' => true, ];
  4. Run node build -all

I run Win11, grunt is installed (double checked).
Any ideas where I should look at?
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions