تابستون داره تموم میشه ها، فرصت‌ها محدودن کلی آفر جذاب در کمپین تابستون🔥👇
۰ ثانیه
۰ دقیقه
۰ ساعت
۳ Hossein Shayesteh
خطا در نصب create react app
جامعه ری اکت ایجاد شده در ۲۹ اسفند ۱۴۰۱
npm init react-app my-project
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! errno ERR_SOCKET_TIMEOUT
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/@typescript-eslint%2ftypes: Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mohammad/.npm/_logs/2023-03-20T18_25_20_516Z-debug-0.log
Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
Deleting my-project/ from /home/mohammad
Done.
npm ERR! code 1
npm ERR! path /home/mohammad
npm ERR! command failed
npm ERR! command sh -c create-react-app my-project
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mohammad/.npm/_logs/2023-03-20T18_21_01_018Z-debug-0.log

سلام برای نصب یک برنامه ری اکتی بهتره از دستور زیر استفاده کنی

npx create-react-app nameProject

بهترین پاسخ
emad ta ۲۹ اسفند ۱۴۰۱، ۱۹:۵۹

از این کد هم استفاده کردم

npx create-react-app my-pr                                                                                              
Creating a new React app in /home/mohammad/my-pr.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mohammad/.npm/_logs/2023-03-21T09_45_47_622Z-debug-0.log
Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
Deleting my-pr/ from /home/mohammad
Done.


Hossein Shayesteh ۰۱ فروردین ۱۴۰۲، ۱۰:۱۵

مشکلم حل شد خیلی ممنون

Hossein Shayesteh ۰۱ فروردین ۱۴۰۲، ۱۰:۲۲