Hi Kyky,

That's definitely an odd error.   Maybe you had previously built an older 
version of DSpace and it's encountering some older versions of dependencies?

If so, you can run "yarn clean", then "yarn install" and "yarn build:prod" 
again.

If that still doesn't work, you might try reinstalling Yarn or Node.  This 
error almost sounds like Yarn itself is having a failure.  Maybe it didn't 
get installed properly?

Tim

On Sunday, January 14, 2024 at 10:13:54 PM UTC-6 [email protected] wrote:

> I am trying to install 7.5 on ubuntu 20.04.
> My yarn version is 1.22.21
> my node version is 16.20.0
>
> the yarn isntall was successful without problem, but when i want to try to 
> run "yarn run build:prod" it said this:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> */build/dspace-angular-dspace-7.5# yarn build:prodyarn run v1.22.21$ yarn 
> run build:ssrSyntaxError: Invalid or unexpected token    at 
> /root/.nvm/versions/node/v16.20.0/lib/node_modules/yarn/lib/cli.js:41718:4  
>   at Object.<anonymous> 
> (/root/.nvm/versions/node/v16.20.0/lib/node_modules/yarn/lib/cli.js:41816:2)  
>   at __webpack_require__ 
> (/root/.nvm/versions/node/v16.20.0/lib/node_modules/yarn/lib/cli.js:22:30)  
>   at _load_config 
> (/root/.nvm/versions/node/v16.20.0/lib/node_modules/yarn/lib/cli.js:88866:43) 
>  
>   at 
> /root/.nvm/versions/node/v16.20.0/lib/node_modules/yarn/lib/cli.js:88358:34  
>   at Generator.next (<anonymous>)    at step 
> (/root/.nvm/versions/node/v16.20.0/lib/node_modules/yarn/lib/cli.js:310:30)  
>   at 
> /root/.nvm/versions/node/v16.20.0/lib/node_modules/yarn/lib/cli.js:328:14  
>   at new Promise (<anonymous>)    at new F 
> (/root/.nvm/versions/node/v16.20.0/lib/node_modules/yarn/lib/cli.js:5540:28)error
>  
> Command failed with exit code 1.info Visit 
> https://yarnpkg.com/en/docs/cli/run <https://yarnpkg.com/en/docs/cli/run> 
> for documentation about this command.*
> please help me, how to resolve this.
> Thank you, Best Regards
> -Kyky

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/12b2ca07-90de-465c-8185-7929b0035f51n%40googlegroups.com.

Reply via email to