Dspace 7.1 Angular Installation Ko

62 views
Skip to first unread message

Ruben Ramos

unread,
Feb 21, 2024, 4:07:30 AM2/21/24
to DSpace Technical Support
Hi everyone,

I need to make some changes to a dspace 7.1 angular project.

Whenever I try to install and build the project, I consistently encounter errors with the dependencies that I am unable to resolve. Here are some examples:

npm ERR! While resolving: dspace-...@0.0.0
npm ERR! Found: @angular/com...@10.2.5
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~10.2.3" from the root project      
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^8.0.0" from ngx-sor...@3.1.4
npm ERR! node_modules/ngx-sortablejs
npm ERR!   ngx-sortablejs@"^3.1.4" from the root project



When I try to fix this error, I encounter others with other dependencies. I have attempted to resolve them using commands such as npm prune, npm update and npm install --force, but unfortunately, they haven't worked.

Could someone please help me or direct me to a clean and stable version of dspace 7.1 for the frontend? I have downloaded the official tag, but I'm encountering the same dependency errors.

Thank you for your assistance.

Best regards,
Rubén

DSpace Technical Support

unread,
Mar 6, 2024, 10:36:05 AM3/6/24
to DSpace Technical Support
Hi Ruben,

Could you try a later version of DSpace 7?   The latest is 7.6.1.

The reason I ask is that it's possible that these issues were cleaned up in later releases (as I recall there being fixes related to dependency installation, but not what version added them).

If you must run DSpace 7.1, you could try running a full "yarn run clean", "yarn install" and then rebuild via Yarn.  You **must** use Yarn though as using npm directly may not work.  

Tim

Reply all
Reply to author
Forward
0 new messages