Comments (7)
I had the same problem. Making the following changes fixed the issue:
// package.json
"scripts": {
"bootstrap": "netlify dev:exec node ./scripts/bootstrap-fauna-database.js",
"docs": "md-magic --path '**/*.md' --ignore 'node_modules'",
- "start": "netlify dev",
+ "dev": "netlify dev",
+ "start": "react-scripts start",
"prebuild": "echo 'setup faunaDB' && npm run bootstrap",
"build": "react-scripts build"
},
// netlify.toml
[dev]
# Local dev command. A.k.a npm start
- command = "react-scripts start"
+ command = "npm start"
from netlify-faunadb-example.
It seems like the project cannot run as-is due to the CLI detecting the netlify dev
calls and throwing an error. The CLI logic is correct, and @domnantas provided the appropriate fix to prevent the CLI from attempting to recursively call itself.
See also: netlify/cli#1798
from netlify-faunadb-example.
Update: getting this error:
from netlify-faunadb-example.
I am getting the same error but after installation and on npm start
1 verbose cli [
1 verbose cli '/Users/[name]/.nvm/versions/node/v13.8.0/bin/node',
1 verbose cli '/Users/[name]/.nvm/versions/node/v13.8.0/bin/npm',
1 verbose cli 'start'
1 verbose cli ]
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]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /Users/[name]/.nvm/versions/node/v13.8.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/[name]/code/fun/wanna-hit/node_modules/.bin:/Users/[name]/.nvm/versions/node/v13.8.0/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/opt/sphinx-doc/bin
9 verbose lifecycle [email protected]~start: CWD: /Users/[name]/code/fun/wanna-hit
10 silly lifecycle [email protected]~start: Args: [ '-c', 'netlify dev' ]
11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `netlify dev`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/Users/[name]/.nvm/versions/node/v13.8.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:321:20)
13 verbose stack at ChildProcess.<anonymous> (/Users/[name]/.nvm/versions/node/v13.8.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:321:20)
13 verbose stack at maybeClose (internal/child_process.js:1026:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/[name]/code/fun/wanna-hit
16 verbose Darwin 19.6.0
17 verbose argv "/Users/[name]/.nvm/versions/node/v13.8.0/bin/node" "/Users/[name]/.nvm/versions/node/v13.8.0/bin/npm" "start"
18 verbose node v13.8.0
19 verbose npm v6.13.6
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `netlify dev`
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 netlify-faunadb-example.
Getting same error message.
c:\Workplace\DevOps\netlify-faunadb-example>npm start
[email protected] start c:\Workplace\DevOps\netlify-faunadb-example
netlify dev
◈ Netlify Dev ◈
◈ Empty args assigned, this is an internal Netlify Dev bug, please report your settings and scripts so we can improve
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: netlify dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
from netlify-faunadb-example.
Any update on this? I can't get this to work. Receiving the same error
from netlify-faunadb-example.
Interestingly enough I updated faunadb and then the above fixes started working.
from netlify-faunadb-example.
Related Issues (17)
- Solution for missing 'https' module / 500 response error
- Puzzling out UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'statusCode' of undefined HOT 3
- Stuck waiting for localhost:34567... HOT 1
- Works without setting faunadb key? HOT 2
- Follow AWS Lambda best practices HOT 2
- [Update] FaunaDB Add-on for Netlify
- functions build fail, need update the package.json HOT 2
- Add in due dates to todos and wire up Functions to notify users via email/SMS
- Error: Cannot find module 'faunadb' HOT 15
- Error After Following README Instructions HOT 1
- Deployed App url???
- Environment variables are potentially vulnerable to a malicious deploy preview HOT 3
- Confused re tutorial HOT 5
- I needed to set FAUNADB_SERVER_SECRET as well as FAUNADB_SECRET for the app to work HOT 2
- Issue with formidable package inside of faunadb npm module HOT 3
- UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'statusCode' of undefined HOT 5
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 netlify-faunadb-example.