Code Monkey home page Code Monkey logo

Comments (7)

domnantas avatar domnantas commented on August 31, 2024 2

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.

ctjlewis avatar ctjlewis commented on August 31, 2024 1

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.

lpatmo avatar lpatmo commented on August 31, 2024

Update: getting this error:

image

from netlify-faunadb-example.

hoop71 avatar hoop71 commented on August 31, 2024

I am getting the same error but after installation and on npm start

image

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.

av1nash avatar av1nash commented on August 31, 2024

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.

stevenfowler16 avatar stevenfowler16 commented on August 31, 2024

Any update on this? I can't get this to work. Receiving the same error

from netlify-faunadb-example.

stevenfowler16 avatar stevenfowler16 commented on August 31, 2024

Interestingly enough I updated faunadb and then the above fixes started working.

from netlify-faunadb-example.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.