digitoimistodude / air-light

💨 WordPress starter theme - designed to be minimal, ultra-lightweight (< 20 kB) and easy for all kinds of WordPress projects. 7+years/1000+hours of development and still updating daily! We prefer the original WordPress way of doing things so no strange templating languages or frameworks here.
https://airwptheme.com
MIT License
929 stars 139 forks source link

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

Closed jcummings83 closed 7 months ago

jcummings83 commented 7 months ago

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 commented 7 months ago

I am also using Local

ronilaukkarinen commented 7 months ago

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 commented 7 months ago

Ref: #88.