Skip to content
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

Build fails if spaces in path #17

Open
offtherailz opened this issue Oct 8, 2021 · 0 comments
Open

Build fails if spaces in path #17

offtherailz opened this issue Oct 8, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@offtherailz
Copy link
Member

notified by @sycured

Running a mapstore-project 's buid.sh in a directory with "spaces" in absolute path.

nvm install 14 && nvm use 14
cd mapstore/cgd-fe && ./build.sh

has the following error.

internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module '/var/lib/jenkins/workspace/EMSA'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
child_process.js:866
    throw err;
    ^

Error: Command failed: node /var/lib/jenkins/workspace/EMSA CGD MAPSTORE WAR/mapstore/cgd-fe/node_modules/@mapstore/project/scripts/compile.js --type=standard
    at checkExecSyncError (child_process.js:790:11)
    at Object.execSync (child_process.js:863:15)
    at Object.<anonymous> (/var/lib/jenkins/workspace/EMSA CGD MAPSTORE WAR/mapstore/cgd-fe/node_modules/@mapstore/project/bin/mapstore-project.js:28:10)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47 {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 38343,
  stdout: null,
  stderr: null
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] compile: `mapstore-project compile standard`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] compile 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!     /var/lib/jenkins/.npm/_logs/2021-10-08T11_53_05_459Z-debug.log
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE

The issue is due to whitespace in folder name

@offtherailz offtherailz added the bug Something isn't working label Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant