본문 바로가기
WEB,WAS/React

NPM 에러 - Error: The package "@esbuild/linux-x64" could not be found, and is needed by esbuild.

by Rainbound-IT 2023. 9. 15.
반응형

 

 

증상

이런 에러가 발생

 

npm run build 하니까 이런 에러가 발생했다.

 

해결방법

node modules를 삭제하면 된다.

 

rm -rf node_modules/

 

그리고 다시 install 후 build하면된다.

 

npm i
npm run build

 

 

Reference

https://stackoverflow.com/questions/75014342/any-idea-why-vite-js-is-having-issues-in-react-with-esbuild

 

Any Idea why vite.js is having issues in react with esbuild

I tried installing react app with vite and after installation when i tried using npm run dev it keeps throwing this error, dyld: Symbol not found: _clock_gettime Referenced from: /Users/KELVIN/De...

stackoverflow.com

 

반응형

댓글