I follow the installation instruction in this link: Installation | ReScript Language Manual , which is
git clone https://github.com/rescript-lang/rescript-project-template
cd rescript-project-template
npm install
npm run res:build
node src/Demo.bs.js
However, when I’m running npm run res:build
, there’s an error.
I have checked my Node.js, which is of version 18.12.1. But I cannot find any problem.
I’m wondering if I miss something, or Rescript doesn’t support a too new Node.js.
Thank you.
mouton
December 11, 2022, 3:26am
2
Worked for me here with npm 7.3.0, node v15.5.1, rescript 10.0.1. yarn too fwiw.
Hope that helps?
A
1 Like
jihchi
December 11, 2022, 7:59am
3
Are you using Windows OS? Is there any special characters in your path of working directory?
1 Like
DZakh
December 11, 2022, 10:20am
4
Works for me. Could you share more info?
1 Like
Could antivirus software be blocking ReScript?
1 Like
LeoNicatot:
npm run res:build
Oh yes! you’re right! There’re some non-ASCII characters in my path. After changing them into ASCII character, it works. Thank you so much!