DEV Community

Cover image for Using ChatGPT 1: Setup local environment
Vladislav Kopylov
Vladislav Kopylov

Posted on

Using ChatGPT 1: Setup local environment

I have experience with using ChatGPT, but I didn’t consider it an everyday tool for a programmer. I’ve changed my job, got a MacBook with Ventura OS, a welcome pack and started to set up local environment. My new project is a big system written on RubyOnRails with SPA written on reactJS. Of course, I did it before and I didn’t think there would be any problems. Unfortunately, I had problems with setting up local environment for the SPA application, specifically with installing node-gyp. I’ve tried different nodeJS versions and I’ve asked my team leader for help. We didn’t find any solution. I was frustrated and my working day was wasted.

In the evening I came back home and decided to ask ChatGPT for setting up local environment for the SPA application. Honesty, I didn’t think it would help. I decided to do it just for fun. I poured a cup of tea and opened chat.openai.com. I’ve sent an error to ChatGPT, it asked me about my local environment and tried to help me. It suggested changing my nodeJS version, use FORCE_PREBUILT_MODULES flag, etc, but we still had problems. After 45 minutes it wrote me to install all packages with —ignore-scripts and it worked for me. I have installed fsevents, node-gyp and other packages. It worked like a magic, I didn’t believe that ChatGPT have helped me. Wow, I was surprised and so excited! It’s a big thing and I will continue to use it for my job tasks.

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay