# Sh: react-scripts: command not found

**URL:** <https://forum.canton.network/t/sh-react-scripts-command-not-found/5644>\
**Category:** App Development\
**Created:** [November 11, 2022, 12:10pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644 "2022-11-11T12:10:45Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudia\_giannoni](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/claudia_giannoni/32/5123_2.png) [@claudia\_giannoni](https://forum.canton.network/u/claudia_giannoni)\
**Post date:** [November 11, 2022, 12:10pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/1 "2022-11-11T12:10:46Z")

</div>

Hello everyone,

Sorry to bother you with this. I know you have discussed this many times, but I tried everything I found in the community chat, and it doesn’t work. How can I install the react -script? I’ll be thankful to anyone who can help this beginner stack with the lesson 🙂

---

<div class="post-metadata">

**Author:** ![WallaceKelly](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/wallacekelly/32/5046_2.png) [@WallaceKelly](https://forum.canton.network/u/WallaceKelly)\
**Post date:** [November 11, 2022, 1:33pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/2 "2022-11-11T13:33:39Z")

</div>

Hi, @claudia_giannoni. I’m sure we would be happy to help.

Can you tell us what you have tried and where you are stuck? For example, the [Getting Started with Daml](https://docs.daml.com/getting-started/index.html) page includes a react-backed application. Is that what you are working through? What step are you on? Are you seeing an error message?

---

<div class="post-metadata">

**Author:** ![claudia\_giannoni](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/claudia_giannoni/32/5123_2.png) [@claudia\_giannoni](https://forum.canton.network/u/claudia_giannoni)\
**Post date:** [November 11, 2022, 5:12pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/3 "2022-11-11T17:12:42Z")

</div>

Hi, Thank you ever so much!!! I spent all day trying to fix this ( is m sure it’s trivial for you) , and now it looks I progressed a bit as it looks like it finds the npm, but it doesn’t open the page, and it gives me this error:

` opensslErrorStack: ['error:03000086:digital envelope routines::initialization error'], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'`

---

<div class="post-metadata">

**Author:** ![claudia\_giannoni](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/claudia_giannoni/32/5123_2.png) [@claudia\_giannoni](https://forum.canton.network/u/claudia_giannoni)\
**Post date:** [November 11, 2022, 5:13pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/4 "2022-11-11T17:13:11Z")

</div>

I am trying to install the sandbox in DAML

---

<div class="post-metadata">

**Author:** ![WallaceKelly](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/wallacekelly/32/5046_2.png) [@WallaceKelly](https://forum.canton.network/u/WallaceKelly)\
**Post date:** [November 11, 2022, 6:00pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/5 "2022-11-11T18:00:00Z")

</div>

I believe this is a known issue with the latest versions of Node. See for example [this thread](https://discuss.daml.com/t/error-digital-envelope-routines-and-daml-sandbox/4095).

The sample application works with Node.js 14. You can see what version of Node.js you are using with `node --version`. Presumably you are using a version of Node.js that is more recent than version 14. What to do?

Supporting multiple versions of Node on a single machine has historically been challenging. There are lots of solutions out there.

- If you have no other reason to have Node.js on your machine, you could uninstall your current version and install [Node.js v. 14](https://nodejs.org/download/release/latest-v14.x/).
- If you want to be able to use multiple versions of Node.js on your machine, [nvm](https://www.freecodecamp.org/news/node-version-manager-nvm-install-guide/) is a popular solution.

Let us know how it goes.

---

<div class="post-metadata">

**Author:** ![claudia\_giannoni](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/claudia_giannoni/32/5123_2.png) [@claudia\_giannoni](https://forum.canton.network/u/claudia_giannoni)\
**Post date:** [November 11, 2022, 6:22pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/6 "2022-11-11T18:22:04Z")

</div>

Hi Wallace, just a quick question, I think I managed to instal the npm, and I don’t get that message any more. Now it when I input `npm start` it looks that it starts the sandbox but it fails to compile. I get the error below:

Failed to compile.  
./src/config.ts 142:46  
Module parse failed: Unexpected token (142:46)  
You may need an appropriate loader to handle this file type.  
| // We default to assuming that user management is enabled so we interpret everything that  
| // isn’t explicitly “false” as supporting user management.

> process.env.REACT\_APP\_SUPPORTS\_USERMANAGEMENT?.toLowerCase() !== “false” ? withUserManagement : noUserManagement;  
> | export var authConfig = function () {  
> | if (isRunningOnHub()) {

Would you still suggest installing Node.js 14? Thank you a lot for answering, I am really exhausted from trials now 🙂 🙂

---

<div class="post-metadata">

**Author:** ![WallaceKelly](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/wallacekelly/32/5046_2.png) [@WallaceKelly](https://forum.canton.network/u/WallaceKelly)\
**Post date:** [November 11, 2022, 8:07pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/7 "2022-11-11T20:07:33Z")

</div>

@claudia_giannoni I have tried everything I can think of to reproduce your error message. I have not found a way to reproduce it.

May I recommend starting from scratch?

1. Install Node.js, version 14.
2. In a new folder, `daml new create-daml-app --template create-daml-app`
3. `cd create-daml-app`
4. `daml build`
5. `daml start`
6. Open a second terminal window.
7. `cd create-daml-app/ui`
8. `node --version` (to confirm you are using a v14.21.1)
9. `npm install`
10. `npm start`

At this point, 🤞 the browser should open the following:

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/b/b04c16d224fcd83d8e368a0843c6c4ecb805ed48.png)

Does this work for you?

---

<div class="post-metadata">

**Author:** ![claudia\_giannoni](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/claudia_giannoni/32/5123_2.png) [@claudia\_giannoni](https://forum.canton.network/u/claudia_giannoni)\
**Post date:** [November 11, 2022, 11:39pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/8 "2022-11-11T23:39:03Z")

</div>

> [@WallaceKelly](#):
>
> node --version

Wallace, you are a STAR!!! Thank you ever so so so much!!! Finally, it works!! I am ever so grateful. Have a wonderful weekend 🙂 🙂

---

<div class="post-metadata">

**Author:** ![Mate\_Varga](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/mate_varga/32/2308_2.png) [@Mate\_Varga](https://forum.canton.network/u/Mate_Varga)\
**Post date:** [November 12, 2022, 2:33pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/9 "2022-11-12T14:33:07Z")

</div>

The openssl dependency issue can be also be remedied by changing the line containing the start command in your package.json file, adding the `--openssl-legacy-provider` node option. On windows you should change it to

```haskell
"start": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",

```

on linux or mac the following

```haskell
"start": "NODE_OPTIONS=--openssl-legacy-provider react-scripts start",

```

This has been tested and working with the current LTS version of nodejs which is 18.x at the time of writing this reply.

---

<div class="post-metadata">

**Author:** ![claudia\_giannoni](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/claudia_giannoni/32/5123_2.png) [@claudia\_giannoni](https://forum.canton.network/u/claudia_giannoni)\
**Post date:** [November 14, 2022, 1:21pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/10 "2022-11-14T13:21:13Z")

</div>

Hi Wallace, here I am again. Would you have another 5 min for me? 🙂

I followed your instructions, and I managed to create the Sandbox. However, when I try to log in as Alice or any name, I get an error saying

" Failed to login as ‘Alice’:  
{“status”:401,“errors”:{“User ID"Alice" does not match regex"[a-z0-9@^$.!\-#+'~\_|:]{1,128}"”]}.

I know I am a pain! Sorry about this. Would you have another 10 min to help? It would be great !! 🙏 🙏 🙏 🙏 🙏 🙏

---

<div class="post-metadata">

**Author:** ![WallaceKelly](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/wallacekelly/32/5046_2.png) [@WallaceKelly](https://forum.canton.network/u/WallaceKelly)\
**Post date:** [November 14, 2022, 1:24pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/11 "2022-11-14T13:24:32Z")

</div>

Hi, Claudia. Try `alice` instead of `Alice`. 🙂

---

<div class="post-metadata">

**Author:** ![claudia\_giannoni](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/claudia_giannoni/32/5123_2.png) [@claudia\_giannoni](https://forum.canton.network/u/claudia_giannoni)\
**Post date:** [November 14, 2022, 1:31pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/12 "2022-11-14T13:31:13Z")

</div>

Thank you so much!! It works! Sorry I am following a tutorial, and I didn’t think the Capital letter would matter. But I still cannot make Alice follow Bob, even though I put bob instead of Bob. It says “INAVLID\_PARTY\_ IDENTIFIER”

Another little bit of help?

---

<div class="post-metadata">

**Author:** ![claudia\_giannoni](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/claudia_giannoni/32/5123_2.png) [@claudia\_giannoni](https://forum.canton.network/u/claudia_giannoni)\
**Post date:** [November 14, 2022, 1:48pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/13 "2022-11-14T13:48:55Z")

</div>

I think I tried in any which way. it says:

Unknown error:  
{“status”:400, “errors”:  
[“INVALID\_PARTY\_IDENTIFIER(8,94c4d7c1): The given party is not a valid Canton party identifier: unable to parse party: Invalid unique identifier ’ bob’ with missing namespace.”]}.

I tried with other names, but same message.

🙏 🙏 🙏 🙏 🙏 🙏 🙏

Sorry again, I have been struggling with these for days now… I would love at least to see the end of the tutorial today! 🙂 🙂

---

<div class="post-metadata">

**Author:** ![WallaceKelly](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/wallacekelly/32/5046_2.png) [@WallaceKelly](https://forum.canton.network/u/WallaceKelly)\
**Post date:** [November 14, 2022, 1:53pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/14 "2022-11-14T13:53:59Z")

</div>

Before Alice can follow Bob, Bob must log in. Here is the correct sequence.

1. Open a browser window. Log in as `alice.`
2. Open another browser window. Log in as `bob`.
3. Return to the first browser window, select Bob from the drop down list.

I tried just typing in `Bob` and `bob` after step 1 and I got the error you saw.

---

<div class="post-metadata">

**Author:** ![claudia\_giannoni](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/claudia_giannoni/32/5123_2.png) [@claudia\_giannoni](https://forum.canton.network/u/claudia_giannoni)\
**Post date:** [November 14, 2022, 2:27pm UTC](https://forum.canton.network/t/sh-react-scripts-command-not-found/5644/15 "2022-11-14T14:27:57Z")

</div>

Again Wallace, thank you ever so much for your help. Just tried it, and it works. Sorry, this was a bit silly of me; I was so sure I was making some big mess somewhere that I didn’t think about logging in as Bob before, which is understandable. 🙂

I really really appreciate your help. Thank you again for your patience. 🙏 🙏 🙏 🙏 🙏 🙏
