have a problem running npm start from my newly created project, the thing is the problem doesn’t seem to occur outside of this folder (its a git repo, so it needs to be in here). If i create a new project in another folder and run npm start I have no issues at all.
So I recently started working in Ubuntu 18.04LTS, gone through all the setup of installing nodejs and npm.
Currently running versions:
node = 10.16.0
npm = 6.9.2
So I created my app by using npx create-react-app
run npm start and gets this error:
sh: 1: react-scripts: not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! email@example.com start: `react-scripts start` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the firstname.lastname@example.org start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I tried deleting node_modules and package-lock.json, but no succes.
npm run env gives me this
npm.log (7.6 KB)
adding the fill path to react-scripts start, seems to work at first glance, but nothing actually gets rendered