I dont know what this is...trying to start my react server by "npm start"

(Tarun) #1

What I Wanted to Do

What Happened Instead

Reproduction Steps

Details

Platform Info

$ npm --versions
<!-- paste output here -->
$ node -p process.platform
<!-- paste output here -->
``` client@0.1.0 start /home/tarunmanchukonda/Desktop/UrbanSoal/client
> 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
(John Gee) #2

(Reports to #bugs should use the template. Reports to #support are more freeform and I have moved your issue there.)

The short version is run this to fix the ownership, then try your command again:

sudo chown -R $(whoami) ~/.npm

A previous install using sudo may have left behind some files with the wrong ownership.