Yarn gives error when creating a next.js application - windows

I get this error because I have space present in my system username. How do I run this command successfully?
the error:
'C:\Users\Yatharth' is not recognized as an internal or external command, operable program or batch file. error Command failed. Exit code: 1 Command: C:\Users\Yatharth Singh\AppData\Local\Yarn\bin\create-next-app Arguments: panda command= C:\Users\Yatharth Singh\AppData\Local\Yarn\bin\create-next-app

Related

Script don't recognize strings (Docker Windows)

I have an exe file which executing some commands in docker container (ubuntu) that should make a build and run application. In some step I need to make a copy of dist file and command looks like this
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v //f/bigaboo/repos/ledger://f/bigaboo/repos/ledger --workdir=//f/bigaboo/repos/ledger bbcli_executor bash -c "cp ./public/index.php.dist ./public/index.php"
When I just run this command in the terminal all works well but if it's under exe control I have this output
./public/index.php.dist: -c: line 1: unexpected EOF while looking for matching `"'
./public/index.php.dist: -c: line 2: syntax error: unexpected end of file
2022/10/31 22:14:42 Failed to create index.php`. Error -> exit status 2
Looks like script don't recognize strings under exe.
I've tried to wrap cp in '',`` and \x22 but I've got the same result but with different symbols also I've tried to change encoding also without success :(

unable to build siddhi-operator image using operator-sdk

I'm trying to build a siddhi-operator image by following the steps mentioned in https://github.com/siddhi-io/siddhi-operator
As mentioned in github README.md file, trying to build an image with operator-sdk using command "$ operator-sdk build <DOCKER_REGISTRY_URL>/<USER_NAME>/siddhi-operator:"
On MAC:
The build is failing with the error "unknown command 'build' for 'operator-sdk'"
On Windows:
Unable to install operator-sdk itself while executing makefile
PS C:\Users\bhavya.gm\operator-sdk> make install
process_begin: CreateProcess(NULL, test -t 0; echo $?, ...) failed.
Makefile:106: pipe: No such file or directory
process_begin: CreateProcess(NULL, dirname, ...) failed.
Makefile:75: pipe: No such file or directory
process_begin: CreateProcess(NULL, dirname, ...) failed.
Makefile:75: pipe: No such file or directory
'test' is not recognized as an internal or external command,
operable program or batch file.
Note:
Followed this page to install operator sdk on both mac and windows
https://sdk.operatorframework.io/docs/installation/#install-from-github-release

Execute command inside a bash script with space inside parameter

I'm having the following issue. When I execute this command sfdx profile:field:add -n "Account.Test" -m re -p "Test" from a Bash script, it's all fine.
However, when I try to execute the following:
sfdx profile:field:add -n "Account.Test" -m re -p "Test Test"
I get this error: 'C:\Program' is not recognized as an internal or external command
When I run the same command in the terminal, it works fine. It's just when I put it inside a bash script that this error happens.
Currently running this on Windows 10.
I'm 100% sure it's the space in that last parameter, I am just not sure how to get around it. Can anyone help?

Script shows that Tool is not in a path FATAL error

When I was running the command in terminal of linux then that command worked and necessary files are created but when I ran that command in shell script then the script is showing the message like "The tool is not in path. FATAL error". Can anyone help me why this is happening when I am running the commands through Shell script?
Command is : /remote/system/vdk/2019.06/bin/icv -i -c -f GDSII | tee drc.log
Is this the problem with tool that it is only running on terminal, but not when we running the same by mean of scripting? Can anyone help me?

Groovy shell script doesn't recognize export command

I'm running a groovy shell script where I'm trying to set the proxy before running the aws command:
export http_proxy=http://proxy.url.com:8099
aws s3 ls
But I'm getting this error:
Caught: java.io.IOException: Cannot run program "export": error=2, No such file or directory
java.io.IOException: Cannot run program "export": error=2, No such file or directory
at com.capitalone.cep.lensOps.run(lensOps.groovy:13)
The export command works fine when I run it in bash so what should I do in groovy to get it to work?
export is a shell feature and not an external program. To run a program with a certain value in its environment, you can instead use env.
env http_proxy=http://proxy.url.com:8099 aws s3 ls

Resources