Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: ENOENT: no such file or directory when running gulp #205

Closed
jcummings83 opened this issue Nov 30, 2023 · 3 comments
Closed

Error: ENOENT: no such file or directory when running gulp #205

jcummings83 opened this issue Nov 30, 2023 · 3 comments

Comments

@jcummings83
Copy link

Hi, I am new to running this theme and followed the instructions for installation, however I am running into an issue when running gulp:

`node:fs:581
return binding.open(
^

Error: ENOENT: no such file or directory, open '/var/www/certs/localhost-key.pem'
at Object.openSync (node:fs:581:18)
at Object.readFileSync (node:fs:457:35)
at getKey (/Users/jessecummings/Local Sites/qmodoai/app/public/wp-content/themes/qmodo2024/node_modules/browser-sync/dist/server/utils.js:38:15)
at getHttpsServerDefaults (/Users/jessecummings/Local Sites/qmodoai/app/public/wp-content/themes/qmodo2024/node_modules/browser-sync/dist/server/utils.js:45:14)
at Object.getHttpsOptions (/Users/jessecummings/Local Sites/qmodoai/app/public/wp-content/themes/qmodo2024/node_modules/browser-sync/dist/server/utils.js:67:41)
at /Users/jessecummings/Local Sites/qmodoai/app/public/wp-content/themes/qmodo2024/node_modules/browser-sync/dist/server/utils.js:81:44
at Object.getServer (/Users/jessecummings/Local Sites/qmodoai/app/public/wp-content/themes/qmodo2024/node_modules/browser-sync/dist/server/utils.js:85:15)
at createProxyServer (/Users/jessecummings/Local Sites/qmodoai/app/public/wp-content/themes/qmodo2024/node_modules/browser-sync/dist/server/proxy-server.js:87:35)
at createServer (/Users/jessecummings/Local Sites/qmodoai/app/public/wp-content/themes/qmodo2024/node_modules/browser-sync/dist/server/index.js:69:41)
at module.exports.plugin (/Users/jessecummings/Local Sites/qmodoai/app/public/wp-content/themes/qmodo2024/node_modules/browser-sync/dist/server/index.js:12:20) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/var/www/certs/localhost-key.pem'
}
`

I also tried running gulp devstyles to see if my css updates are being applied and they are not. Any help is much appreciated. Thanks!

@jcummings83
Copy link
Author

I am also using Local

@ronilaukkarinen
Copy link
Member

Not really an Air-light theme related issue so closing this. We don't provide support for custom setups. If you use dudestack or macos-lemp-stack please open an issue for those. Also refer to doc: Using with Local by Flywheel or other 3rd party development environment.

It says right there in the error, you are missing the local cert. So go to /var/www/certs and issue a local cert mkcert localhost. You need to have mkcert installed. If you do not have /var/www or have any other setup, I can't really help further. You'd have to create your own dir for certs and add certs there and then edit your gulp/config.js.

@ronilaukkarinen
Copy link
Member

Ref: #88.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants