Я не могу запустить свой реагирующий сервер .. я не знаю, что делать !!также удалил кеш и снова установил модули узлов - PullRequest
0 голосов
/ 17 апреля 2019

Я пытался запустить свой реагирующий сервер, я также пытался установить node_modules, но проблема все еще не решена.

client@0.1.0 start / home / tarunmanchukonda / рабочий стол / UrbanSoal / клиент

react-scripts start

sh: 1: react-scripts: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! client@0.1.0 start: `react-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the client@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tarunmanchukonda/.npm/_logs/2019-04-17T15_29_14_257Z-debug.log
tarunmanchukonda@tarunmanchukonda-Inspiron-5558:~/Desktop/UrbanSoal/client$ npm i
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/tarunmanchukonda/.npm/_cacache/index-v5/67/0f'Soal/client/nod

Unhandled rejection Error: EACCES: permission denied, mkdir '/home/tarunmanchukonda/.npm/_cacache/index-v5/67/9a'home/tarunmanch

Unhandled rejection Error: EACCES: permission denied, mkdir '/home/tarunmanchukonda/.npm/_cacache/index-v5/67/59'npmjs.org/multi

Unhandled rejection Error: EACCES: permission denied, mkdir '/home/tarunmanchukonda/.npm/_cacache/content-v2/sha512/0b/dc'les-sc

Unhandled rejection Error: EACCES: permission denied, mkdir '/home/tarunmanchukonda/.npm/_cacache/index-v5/67/e9'p/UrbanSoal/cli

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tarunmanchukonda/.npm/_logs/2019-04-17T15_29_54_896Z-debug.log

1 Ответ

0 голосов
/ 17 апреля 2019

Узловые модули не установлены. И когда вы пытаетесь установить его, у пользователя нет разрешения на запись файлов в каталог.

Попробуйте изменить права доступа к каталогу

sudo chmod -R 777 <directory_name>/

или

Попробуйте, предоставив текущему пользователю доступ ко всем файлам в папке.

sudo chown -R <your username> <directory_name>

Затем запустите npm install.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...