You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Trying to set up Superdesk in Docker and when it comes to Run npm run build a warning comes up followed by a lot of errors and the installation stops.
Environment
Newly setup of Ubuntu 20.04 vps
Expected Result
I was expecting the install of Superdesk to go smoothly, and that it would be possible to run the system after install.
Actual Result
The build of superdesk-client stops and the following errors occur:
`
npm WARN annotationsLibrary requires a peer of react
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-11-08T08_30_20_956Z-debug.log
Command failed: cd /tmp/client/node_modules/superdesk-core/scripts/extensions/annotationsLibrary && npm install --no-audit && npm run compile --if-present
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! superdesk@ build: npx @superdesk/build-tools build-root-repo ./
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the superdesk@ build 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/2023-11-08T08_30_20_993Z-debug.log
ERROR: Service 'superdesk-client' failed to build: The command '/bin/sh -c npm run build' returned a non-zero code: 1
` Steps to reproduce
Create an Ubuntu 20.04 server. Do the necessary updates after creating the server.
cd to /opt directory
run command: git clone https://github.com/superdesk/superdesk.git /opt/superdesk
enter superdesk directory
do necessary adjustments to docker-compose.yml file (if needed. I only changed localhost to domain)
run docker-compose build
The text was updated successfully, but these errors were encountered:
Summary:
Trying to set up Superdesk in Docker and when it comes to Run npm run build a warning comes up followed by a lot of errors and the installation stops.
Environment
Newly setup of Ubuntu 20.04 vps
Expected Result
I was expecting the install of Superdesk to go smoothly, and that it would be possible to run the system after install.
Actual Result
The build of superdesk-client stops and the following errors occur:
`
npm WARN annotationsLibrary requires a peer of react
`
This is followed by:
`
../../../../@types/node/ts4.8/test.d.ts(876,34): error TS1005: '?' expected.
../../../../@types/node/ts4.8/test.d.ts(876,63): error TS1005: ':' expected.
../../../../@types/node/ts4.8/test.d.ts(877,13): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(879,34): error TS1005: '?' expected.
../../../../@types/node/ts4.8/test.d.ts(879,63): error TS1005: ':' expected.
../../../../@types/node/ts4.8/test.d.ts(880,13): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(880,22): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(881,5): error TS1109: Expression expected.
../../../../@types/node/ts4.8/test.d.ts(885,24): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(889,35): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(895,39): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(899,21): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(904,19): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(904,27): error TS1005: ':' expected.
../../../../@types/node/ts4.8/test.d.ts(904,36): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(904,54): error TS1005: '{' expected.
../../../../@types/node/ts4.8/test.d.ts(904,63): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(904,76): error TS1005: ',' expected.
../../../../@types/node/ts4.8/test.d.ts(908,22): error TS1005: ',' expected.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ compile:
tsc -p src
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ 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/2023-11-08T08_30_20_956Z-debug.log
Command failed: cd /tmp/client/node_modules/superdesk-core/scripts/extensions/annotationsLibrary && npm install --no-audit && npm run compile --if-present
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! superdesk@ build:
npx @superdesk/build-tools build-root-repo ./
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the superdesk@ build 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/2023-11-08T08_30_20_993Z-debug.log
ERROR: Service 'superdesk-client' failed to build: The command '/bin/sh -c npm run build' returned a non-zero code: 1
`
Steps to reproduce
Create an Ubuntu 20.04 server. Do the necessary updates after creating the server.
cd to /opt directory
run command: git clone https://github.com/superdesk/superdesk.git /opt/superdesk
enter superdesk directory
do necessary adjustments to docker-compose.yml file (if needed. I only changed localhost to domain)
run docker-compose build
The text was updated successfully, but these errors were encountered: