Framework7 v6 custom build on Windows

I am attempting to build the latest release of Framework7 (v6.0.15) on Windows. The steps I followed are:

  1. Download a copy of the repository (framework7-6.0.15.zip) and extract
  2. Move to the “framework7-6.0.15” folder and run “npm install”
  3. Copy “scripts/build-config.js” to “scripts/my-config.js” and remove a few components
  4. Run “npm run build-core:prod – --config scripts/my-config.js --output OUTPUT”
  5. The build fails…

The last time I built was using a v5 release and this worked just fine, so I’ve gone back and followed the same steps for v5.7.14 to check my environment is still OK:

  1. Download a copy of the repository (framework7-5.7.14.zip) and extract
  2. Move to the “framework7-5.7.14” folder and run “npm install”
  3. Copy “scripts/build-config.js” to “scripts/my-config.js” and remove a few components
  4. Run “npm run build-core:prod – --config scripts/my-config.js --output OUTPUT”
  5. The release is built in the OUTPUT folder as expected

This is on Windows (using Command Prompt) with Node.js v14.12.0. I also have Git installed and added to the path in case anything like “xargs” is called from the build scripts.

It fails very early (when trying to do the clean). My guess is that the newer build scripts are messing up the paths on Windows somewhere?

The error message when trying to build v6.0.15 is:

C:\Users\JoeW\Downloads\framework7-6.0.15\framework7-6.0.15>npm run build-core:prod -- --config scripts/my-config.js --output OUTPUT

> [email protected] build-core:prod C:\Users\JoeW\Downloads\framework7-6.0.15\framework7-6.0.15
> cross-env NODE_ENV=production gulp build-core "--config" "scripts/my-config.js" "--output" "OUTPUT"

[12:05:54] Using gulpfile ~\Downloads\framework7-6.0.15\framework7-6.0.15\gulpfile.js
[12:05:54] Starting 'build-core'...
[12:05:54] Starting 'core-clean'...
Build will be available at C:\Users\JoeW\Downloads\framework7-6.0.15\framework7-6.0.15\OUTPUT
The system cannot find the path specified.
[12:05:54] 'core-clean' errored after 46 ms
[12:05:54] Error: Shell command exit with non zero code: 1
    at ChildProcess.<anonymous> (C:\Users\JoeW\Downloads\framework7-6.0.15\framework7-6.0.15\node_modules\exec-sh\lib\exec-sh.js:73:15)
    at ChildProcess.emit (events.js:314:20)
    at ChildProcess.EventEmitter.emit (domain.js:548:15)
    at maybeClose (internal/child_process.js:1047:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
    at Process.callbackTrampoline (internal/async_hooks.js:129:14)
[12:05:54] 'build-core' errored after 49 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-core:prod: `cross-env NODE_ENV=production gulp build-core "--config" "scripts/my-config.js" "--output" "OUTPUT"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-core:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\JoeW\AppData\Roaming\npm-cache\_logs\2021-04-14T11_05_54_147Z-debug.log

Any ideas?

1 Like