Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Error: ENOENT: no such file or directory, scandir 'functions' #182

Closed
jakeherp opened this issue May 13, 2019 · 1 comment
Closed

Error: ENOENT: no such file or directory, scandir 'functions' #182

jakeherp opened this issue May 13, 2019 · 1 comment

Comments

@jakeherp
Copy link

I am trying to use netlify dev on a Gatsby project, but get the following error when running the command in my project:

Error: ENOENT: no such file or directory, scandir 'functions'
    at createHandler (/usr/local/lib/node_modules/netlify-cli/node_modules/netlify-dev-plugin/src/utils/serve-functions.js:59:6)
    at serveFunctions (/usr/local/lib/node_modules/netlify-cli/node_modules/netlify-dev-plugin/src/utils/serve-functions.js:242:16)
npm WARN lifecycle The node binary used for scripts is /var/folders/p6/py3zjppx39l4zjpqjh41pgxh0000gn/T/yarn--1557741659930-0.035928606088158066/node but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> [email protected] develop /Users/jacob/Development/agency
> GATSBY_GRAPHQL_IDE=playground gatsby develop

I have gatsby-plugin-netlify and gatsby-plugin-netlify-cache installed and also configured a netlify.toml file through the command line tool using netlify init, although my understanding is, that this would only be required for the continuous deploy, not for running the dev server on my local machine?

@swyxio
Copy link
Contributor

swyxio commented May 14, 2019

for the time being, just make an empty functions folder or you can also delete the functions config inside netlify.toml. this is on us, we need to iron this out better.

@swyxio swyxio closed this as completed in 2f60591 Jun 6, 2019
swyxio added a commit that referenced this issue Jun 6, 2019
Check if functions directory exists. Fixes #182
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants