Comments (6)
@simonpeterdebbarma this could be because of node version - I will look into this in detail. In the meantime you can probably try upgrading your node. I have node - 10.4.2 and npm - 6.4.1 locally.
from learn-react-app.
Having the same issue even with an up-to-date node & npm.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]start: [email protected]
6 info lifecycle [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle truestart: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/chrisjoy/Code/learn-react-app/learn-react-app/node_modules/.bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:
8 verbose lifecycle [email protected]/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/chrisjoy/lib/vsts-cli/bin:/Users/chrisjoy/lib/vsts-cli/binstart: CWD: /Users/chrisjoy/Code/learn-react-app/learn-react-app
9 verbose lifecycle [email protected]
10 silly lifecycle [email protected]start: Args: [ '-c', 'npm run build:markdown && react-scripts start' ]start: Returned: code: 1 signal: null
11 silly lifecycle [email protected]
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: npm run build:markdown && react-scripts start
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/chrisjoy/Code/learn-react-app/learn-react-app
16 verbose Darwin 18.2.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v10.15.1
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: npm run build:markdown && react-scripts start
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
from learn-react-app.
@tyroprogrammer The issue persists with an up-to-date node and npm.
from learn-react-app.
@simonpeterdebbarma, @wildeink - have you tried deleting node_modules
and installing it again? In the root directory:
rm -rf node_modules
npm cache clean
npm install
from learn-react-app.
An updated version of eslint seems to be causing the failed build (for me). Adding SKIP_PREFLIGHT_CHECK=true to my .env file in the root allowed the app to build/start with npm and yarn.
from learn-react-app.
Hope what @wildeink suggested worked! Closing this issue for now.
from learn-react-app.
Related Issues (11)
- Fix typo in repo description HOT 1
- Use npm-run-all in start NPM script HOT 1
- Lifecycle function "componentWillMount()" is deprecated in 17.0 HOT 1
- exercise/06-LifecycleMethod DataApi doesn't work HOT 3
- Request: Connect to Live API HOT 1
- Potential improvement: HOT 1
- Gitpod version not working
- Error: Cannot find module 'chalk'
- Local setup issue
- Remove the unnecessary use of render props in the component composition example. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-react-app.