Hugo-Dz/figma_autoname_client_app

npm install fails with error code 1

Closed this issue · 4 comments

Hi, Thanks for sharing your project!

I'm Joo and I also have been interested in adopting TFJS and AI into Figma (here is my previous experiments)

Anyway, I am trying to install using npm install, but it fails with the error code 1.
I have tried it on Node.js 18.16.0(LTS) and 20.3.0(latest), but both failed.
If I try to install it using yarn, it does not fail, but it fails when I run npm run dev.
I would appreciate if you can help me to resolve this issue.

Here is the log:

654 verbose pkgid node-sass@7.0.0
655 verbose cwd /Users/jude.park/Sites/figma_autoname_client_app
656 verbose Darwin 22.5.0
657 verbose node v20.3.0
658 verbose npm  v9.6.7
659 error code 1
660 error path /Users/jude.park/Sites/figma_autoname_client_app/node_modules/node-sass
661 error command failed
662 error command sh -c node scripts/build.js

The important part of the log is the error code 1 and the command node scripts/build.js.

I think the problem is caused by node scripts/build.js command.

I would appreciate if you can help me to resolve this issue.

Thank you.

Screenshot 2023-06-11 at 1 09 57 PM

Thanks for the report! Have you tried Node 16? And what is the Python version on your machine?

Screenshot 2023-06-12 at 12 03 12 PM

I can run the plugin environment without any problems after changing the node version to 18.16 → 16.20, and then I forced the node-sass using the method in this StackOverflow link.

The result:

Screenshot 2023-06-12 at 12 04 49 PM

I would like you to create a troubleshooting section on your Readme or Wiki space to leave this issue link for others with similar problems with me. :)

Yes! could you make a pr? :)