Uploaded image for project: 'FOLIO'
  1. FOLIO
  2. FOLIO-1370

Platforms fail to install on Windows (platform-core, folio-testing-platform)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • None

    Description

      Platforms containing the postinstall script build-module-descriptors.js fail on Windows development environments when included in a yarn workspace.

      The following error is from a small workspace install (users, inventory, stripes-core, folio-testing-platform):

      Exit code: 1
      Command: node ./build-module-descriptors.js
      Arguments:
      Directory: C:\Users\mattjones\projects\folio\tempworkspace4\node_modules\@folio\folio-testing-platform
      Output:
      * build-module-descriptors
      C:\Users\mattjones\projects\folio\tempworkspace4\node_modules\@folio\folio-testing-platform\build-module-descriptors.js: cannot scan 'C:\Users\mattjones\projects\folio\tempworkspace4\node_modules\@folio\node_modules\@folio': ENOENT: no such file or directory, scandir 'C:\Users\mattjones\projects\folio\tempworkspace4\node_modules\@folio\node_modules\@folio'
      
          at ChildProcess.exithandler (child_process.js:291:12)
          at ChildProcess.emit (events.js:182:13)
          at maybeClose (internal/child_process.js:961:16)
          at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) killed: false, code: 1, signal: null, cmd: 'yarn' }
      

      Error from a large workspace install (all available modules):

      error C:\Users\mattjones\projects\folio\tempworkspace5all\node_modules\@folio\platform-core: Command failed.
      Exit code: 2
      Command: node ./build-module-descriptors.js
      Arguments:
      Directory: C:\Users\mattjones\projects\folio\tempworkspace5all\node_modules\@folio\platform-core
      Output:
      * build-module-descriptors
      processing 'eslint-config-stripes'
      C:\Users\mattjones\projects\folio\tempworkspace5all\node_modules\@folio\platform-core\build-module-descriptors.js: cannot run 'node node_modules/@folio/stripes-core/util/package2md.js node_modules/@folio/eslint-config-stripes/package.json > ModuleDescriptors/eslint-config-stripes.json': { Error: Command failed: node node_modules/@folio/stripes-core/util/package2md.js node_modules/@folio/eslint-config-stripes/package.json > ModuleDescriptors/eslint-config-stripes.json
      internal/modules/cjs/loader.js:596
          throw err;
          ^
      
      Error: Cannot find module 'C:\Users\mattjones\projects\folio\tempworkspace5all\node_modules\@folio\platform-core\node_modules\@folio\stripes-core\util\package2md.js'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
          at Function.Module._load (internal/modules/cjs/loader.js:520:25)
          at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
          at startup (internal/bootstrap/node.js:238:19)
          at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
      
          at checkExecSyncError (child_process.js:603:11)
          at Object.execSync (child_process.js:640:13)
          at fs.readdir (C:\Users\mattjones\projects\folio\tempworkspace5all\platform-core\build-module-descriptors.js:30:35)
          at FSReqWrap.oncomplete (fs.js:169:20)
        status: 1,
        signal: null,
        output:
         [ null,
           <Buffer >,
           <Buffer 69 6e 74 65 72 6e 61 6c 2f 6d 6f 64 75 6c 65 73 2f 63 6a 73 2f 6c 6f 61 64 65 72 2e 6a 73 3a 35 39 36 0d 0a 20 20 20 20 74 68 72 6f 77 20 65 72 72 3b ... > ],
        pid: 1040,
        stdout: <Buffer >,
        stderr:
         <Buffer 69 6e 74 65 72 6e 61 6c 2f 6d 6f 64 75 6c 65 73 2f 63 6a 73 2f 6c 6f 61 64 65 72 2e 6a 73 3a 35 39 36 0d 0a 20 20 20 20 74 68 72 6f 77 20 65 72 72 3b ... > }
      internal/modules/cjs/loader.js:596
          throw err;
          ^
      
      Error: Cannot find module 'C:\Users\mattjones\projects\folio\tempworkspace5all\node_modules\@folio\platform-core\node_modules\@folio\stripes-core\util\package2md.js'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
          at Function.Module._load (internal/modules/cjs/loader.js:520:25)
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                mattj Matt Jones
                mattj Matt Jones
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases