sei-ec-remote / project-4-issues

Open an issue to receive help on project 4
0 stars 0 forks source link

Development server error #257

Closed JordonM closed 12 months ago

JordonM commented 12 months ago

What stack are you using?

(ex: MERN(mongoose + react), DR(django + react), PEN, etc.)

MERN

What's the problem you're trying to solve?

Development server error in front end client when running npm start

Post any code you think might be relevant (one fenced block per file)

If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?

Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported /EmployeeExpAPP/node_modules/react-scripts/scripts/start.js:19 throw err; ^

What is your best guess as to the source of the problem?

an error in npm install

What things have you already tried to solve the problem?

tried adding and committing and running npm start again Paste a link to your repository here https://github.com/JordonM/EmployeeAPP/tree/main

asands94 commented 12 months ago

Hey Jordon, it looks like you need to update your Package.json file. Here are the commands to run in terminal after you cd into your React app. Just make sure when you do an ls in your terminal you can see your package.json before running these commands.

Run one at a time.

npm i -g npm-check-updates ncu -u npm install

JordonM commented 12 months ago

EmployeeExpAPP git:(main) npm i -g npm-check-updates npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/local/lib/node_modules/npm-check-updates npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm-check-updates' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm-check-updates'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/npm-check-updates'

image

asands94 commented 12 months ago

You may need to do sudo npm i -g npm-check-updates

JordonM commented 12 months ago

Thank you