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

bug(): postinstall script broken for cpy-cli #14

Open
mburger81 opened this issue Oct 26, 2023 · 0 comments
Open

bug(): postinstall script broken for cpy-cli #14

mburger81 opened this issue Oct 26, 2023 · 0 comments

Comments

@mburger81
Copy link

mburger81 commented Oct 26, 2023

The postinstall script seems to be broken on implementing this lib in our rest service. I added the issue we get at the bottom.

I think the main reason could be, since about three month there is a new major release of cpy-cli@5 which is not working for your script. There is IMO no way to workaround this issue from the app side when we build the app in a docker container. It is always trying to use cpy-cli@5 and no way to downgrade it to cpy-cli@4.

Can you have a look on it? One solution could be you adapt your script to force using the old version doing like
npx cpy-cli@4 ../smart-contracts-core/config/smart-contracts-core.js config/ ...........

If I'm wrong, can you maybe give as some advices?

thx

#10 182.8 > npx cpy-cli ../smart-contracts-core/config/smart-contracts-core.js config/ && npx mkdirp node_modules/@evan.network && cd node_modules/\@evan.network && npx lnk-cli ../../../smart-contracts-core smart-contracts-core
#10 182.8
#10 192.1 npx: installed 40 in 9.255s
#10 192.3 file:///root/.npm/_npx/1009/lib/node_modules/cpy-cli/cli.js:62
#10 192.3 	if (rename?.includes(stringTemplate)) {
#10 192.3 	           ^
#10 192.3
#10 192.3 SyntaxError: Unexpected token '.'
#10 192.3     at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
#10 192.3     at async link (internal/modules/esm/module_job.js:42:21)
#10 197.6 npm WARN [email protected] No repository field.

@S3bb1 @wulfraem @Tschuck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant