dansan1984
(daniel@bi-solved.nl)
May 4, 2024, 8:42pm
1
Hi fellow devs,
Trying to get my dev environment up and running on a windows machine, but running into an error with the CLI
This error has been described here and requires an addition of { shell: true } when Spawning objects. However I’m unsure if this addition needs to be made in the NPX application or in the “Quickstart-react” code.
Did anyone run into this or a similar issue?
Kr,
Daniel
Hello there @dansan1984 and welcome to the community!
I found a few links of discussions about this that might be useful for you:
opened 11:51AM - 16 Apr 24 UTC
closed 02:32PM - 17 Apr 24 UTC
### Version
v18.20.2
### Platform
Microsoft Windows NT 10.0.19045.0 x64
### … Subsystem
_No response_
### What steps will reproduce the bug?
1. Download NodeJS Version v18.20.2, v20.12.2, v21.7.3
2. Download Visual Studio Code
3. Install Extension Pack SAP Fiori Extensions
4. Generate a sample Project
5. Use npm start

### How often does it reproduce? Is there a required condition?
everytime using npm start
### What is the expected behavior? Why is that the expected behavior?
It should open the web browser with the started App
### What do you see instead?
> project1@0.0.1 start
> fiori run --open "test/flpSandbox.html?sap-ui-xx-viewCache=false#project1-display"
**Command run failed with error : spawn EINVAL**
### Additional information
Happened first time after updating the node version.
Seems like a new problem after the security patch.
After downgrade it works fine.
See also: [Link](https://community.sap.com/t5/technology-q-a/visual-code-studio-command-run-failed-with-error-spawn-einval/qaq-p/13670880)
Fresh Node and node-red installation on win 11 gives this error: Node.js v20.12.2 C:\Users\abc>node-red 11 Apr 11:27:42 - [info] Welcome to Node-RED =================== 11 Apr 11:27:42 - [info] Node-RED version: v3.1.8 11 Apr 11:27:42 -...
Reading time: 1 mins 🕑
Likes: 1 ❤
dansan1984
(daniel@bi-solved.nl)
May 6, 2024, 6:50am
3
Hi,
Thanks for your reply. Unfortunately all these issues seems to get solved by the software vendor using NodeJS.
Both SAP and Node-RED have released a patch to fix this issue. Could it be that Monday needs to release a new version of the quickstart-react top fix this?
Hello again,
We do not see any reports of other users having this issue, but if youfill this form (https://support.monday.com/hc/en-us/requests/new?ticket_form_id=13855862562962 ) adding as much information as possible to it (such as account ID, board IDs, item IDs, timestamps, etc.) we can check with our team!
Cheers,
Matias
Fabiogut
(Fabio Gutierrez)
June 13, 2024, 1:12pm
6
I’m having the same problem and I can’t find a solution that solves it
Hello there @Fabiogut ,
Would you be able to please fill the same form (https://support.monday.com/hc/en-us/requests/new?ticket_form_id=13855862562962 ) so that our team can take a look into it?
Same problem - I will fill out the form.
Hello there!
Thank you for filling the form! We will check this with our team
dansan1984
(daniel@bi-solved.nl)
June 17, 2024, 10:12am
11
Hi Sorry for the ate reply, I’ve filled out the form
Hello everyone here!
General question. Are you using Windows? If so, are you using Node 18.x?
dansan1984
(daniel@bi-solved.nl)
June 18, 2024, 7:44am
13
Using windows ( windows 11 ) and Node.js v20.12.2.
Hello again,
Matias here!
May I ask from all of you to please send over the ID of your tickets? We are investigating this.
dansan1984
(daniel@bi-solved.nl)
June 24, 2024, 9:10am
15
My ticket number is: 3438560
D_H
(David Hahn)
June 27, 2024, 7:55am
16
This seems to be a general problem with a new node.js security update. There is a way a way to get around it. In my
C:\Users[username]\AppData\Local\npm-cache_npx\d810257f6f2ee4ed\node_modules\node-run-cmd\index.js
I amended line 42 to read
const spawnProcessOpts = {shell:true };
That should allow your shell to spawn another .cmd process and fix your issue.