I am still running into trouble with creating a standard mapstore2 project.
The npm install in both the MapStore2 and the created standard mapstore project folder 'terramap2' ran through without errors.
I tried to make sure that I am using the correct version (
MapStore2-2020.02.02 ) by using the zip archive and then created a local git repository of that folder.
But running
./build.sh v2020.02.02 printing
runs into the errors below.
Does that mean I am still somehow am using the wrong version or anything else I am doing wrong ?
Karsten
> rimraf dist
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.resolve has an unknown property 'fallback'. These properties are valid:
object { alias?, aliasFields?, cachePredicate?, cacheWithContext?, concord?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache?, useSyncFileSystemCalls? }
-> Options for the resolver
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! terr...@1.0.0 compile: `npm run clean && mkdirp ./dist && node --max_old_space_size=2048 ./node_modules/webpack/bin/webpack.js --config prod-webpack.config.js --env.production`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the terr...@1.0.0 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! /root/.npm/_logs/2020-12-22T21_32_21_808Z-debug.log
----------------------------------------------------------------------------------------
file content of root\.npm\_logs\2020-12-22T21_32_21_808Z-debug.log
----------------------------------------------------------------------------------------
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'compile' ]
2 info using n...@6.14.8
3 info using no...@v12.20.0
4 verbose run-script [ 'precompile', 'compile', 'postcompile' ]
5 info lifecycle terr...@1.0.0~precompile: terr...@1.0.0
6 info lifecycle terr...@1.0.0~compile: terr...@1.0.0
7 verbose lifecycle terr...@1.0.0~compile: unsafe-perm in lifecycle true
8 verbose lifecycle terr...@1.0.0~compile: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/karsten/programs/terramap2/node_modules/.bin:/home/karsten/programs/apache-maven-3.6.3/bin:/usr/lib/postgresql/12/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
9 verbose lifecycle terr...@1.0.0~compile: CWD: /home/karsten/programs/terramap2
10 silly lifecycle terr...@1.0.0~compile: Args: [
10 silly lifecycle '-c',
10 silly lifecycle 'npm run clean && mkdirp ./dist && node --max_old_space_size=2048 ./node_modules/webpack/bin/webpack.js --config prod-webpack.config.js --env.production'
10 silly lifecycle ]
11 silly lifecycle terr...@1.0.0~compile: Returned: code: 1 signal: null
12 info lifecycle terr...@1.0.0~compile: Failed to exec compile script
13 verbose stack Error: terr...@1.0.0 compile: `npm run clean && mkdirp ./dist && node --max_old_space_size=2048 ./node_modules/webpack/bin/webpack.js --config prod-webpack.config.js --env.production`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:314:20)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:314:20)
13 verbose stack at maybeClose (internal/child_process.js:1022:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid terr...@1.0.0
15 verbose cwd /home/karsten/programs/terramap2
16 verbose Linux 4.15.0-128-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "compile"
18 verbose node v12.20.0
19 verbose npm v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error terr...@1.0.0 compile: `npm run clean && mkdirp ./dist && node --max_old_space_size=2048 ./node_modules/webpack/bin/webpack.js --config prod-webpack.config.js --env.production`
22 error Exit status 1
23 error Failed at the terr...@1.0.0 compile script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]