You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
7.3.1
Electron version
v29.1.6
Operating system
macOS 13.4.1
Last known working Electron Forge version
No response
Expected behavior
Based on the docs here https://www.electronforge.io/templates/vite and running the command npm init electron-app@latest my-new-app -- --template=vite
if on wrong node version, I believe, should yield a helpful error message like npm ERR! code ENOTSUP npm ERR! notsup Unsupported engine for my-new-app@1.0.0: wanted: {"node":">=16.4.0"} (current: {"node":"14.19.0","npm":"6.14.16"}) npm ERR! notsup Not compatible with your version of node/npm: my-new-app@1.0.0 npm ERR! notsup Not compatible with your version of node/npm: my-new-app@1.0.0. npm ERR! notsup Required: {"node":">=16.4.0"} npm ERR! notsup Actual: {"npm":"6.14.16","node":"14.19.0"}
Actual behavior
error message is quite generic, as such: Error: Cannot find module 'stream/promises' Require stack:
Steps to reproduce
use node version less than 16.4.0, and run the npm init electron-app@latest my-new-app -- --template=vite command
Additional information
figured maybe adding a .npmrc file in either packages/api/cli or packages/api/core/src with the contents engine-strict=true would help ensure the package.json's enforce engine requirements. Besides, I'm not too sure where the entry point is, any help would be appreciated on:
if this is a good thing to add, or
if its too complex considering the number of entrypoints
The text was updated successfully, but these errors were encountered:
Pre-flight checklist
Electron Forge version
7.3.1
Electron version
v29.1.6
Operating system
macOS 13.4.1
Last known working Electron Forge version
No response
Expected behavior
Based on the docs here https://www.electronforge.io/templates/vite and running the command
npm init electron-app@latest my-new-app -- --template=vite
if on wrong node version, I believe, should yield a helpful error message like
npm ERR! code ENOTSUP
npm ERR! notsup Unsupported engine for my-new-app@1.0.0: wanted: {"node":">=16.4.0"} (current: {"node":"14.19.0","npm":"6.14.16"})
npm ERR! notsup Not compatible with your version of node/npm: my-new-app@1.0.0
npm ERR! notsup Not compatible with your version of node/npm: my-new-app@1.0.0.
npm ERR! notsup Required: {"node":">=16.4.0"}
npm ERR! notsup Actual: {"npm":"6.14.16","node":"14.19.0"}
Actual behavior
error message is quite generic, as such:
Error: Cannot find module 'stream/promises'
Require stack:
Steps to reproduce
use node version less than 16.4.0, and run the
npm init electron-app@latest my-new-app -- --template=vite
commandAdditional information
figured maybe adding a
.npmrc
file in eitherpackages/api/cli
orpackages/api/core/src
with the contentsengine-strict=true
would help ensure thepackage.json
's enforceengine
requirements. Besides, I'm not too sure where the entry point is, any help would be appreciated on:The text was updated successfully, but these errors were encountered: