Wednesday, 7 November 2018

NPM install & start errors, “react-error-overlay”

Hi, I can't make an npm install or npm start command. When I try npm install the console returns:undefined postinstall C:\Users\Aristophanes > cd packages/react-error-overlay/ && yarn build:prod bash: line 0: cd: packages/react-error-overlay/: No such file or directory npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! undefined postinstall: `cd packages/react-error-overlay/ && yarn build:prod` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the undefined postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. ​Firstly, I'm not really sure why it's looking for a packages/react-error-overlay/directory, but I think the console is referring to this directory located on my computer at C:\Users\Aristophanes\create-react-app-next\packages\react-error-overlay. That's the only react-error-overlay directory on my computer with the packages/ prefix. If I open that path in cmd and try npm start I get this error:> react-error-overlay@4.0.0 start C:\Users\Aristophanes\create-react-app-next\packages\react-error-overlay > cross-env NODE_ENV=development node build.js --watch bash: cross-env: command not found npm ERR! file bash npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! react-error-overlay@4.0.0 start: cross-env NODE_ENV=development node build.js --watch npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the react-error-overlay@4.0.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? ​Any ideas? Thanks.

Submitted November 08, 2018 at 07:15AM by Aristophanes88

No comments:

Post a Comment