Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install fails with error code 1 #4

Closed
dusskapark opened this issue Jun 11, 2023 · 4 comments
Closed

npm install fails with error code 1 #4

dusskapark opened this issue Jun 11, 2023 · 4 comments

Comments

@dusskapark
Copy link
Contributor

dusskapark commented Jun 11, 2023

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
@Hugo-Dz
Copy link
Owner

Hugo-Dz commented Jun 11, 2023

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

@dusskapark
Copy link
Contributor Author

dusskapark commented Jun 12, 2023

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. :)

@Hugo-Dz
Copy link
Owner

Hugo-Dz commented Jun 12, 2023

Yes! could you make a pr? :)

@dusskapark
Copy link
Contributor Author

dusskapark commented Jun 12, 2023 via email

dusskapark added a commit to dusskapark/figma_autoname_client_app that referenced this issue Jun 14, 2023
- Added Troubleshooting section
- Added Model change section
dusskapark added a commit to dusskapark/figma_autoname_client_app that referenced this issue Jun 14, 2023
@Hugo-Dz Hugo-Dz closed this as completed Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants