The package ID 'Your game name' contains invalid characters. Can't build game

Hi; I’m trying to build the demo at the moment, as part of the process of a writing a first, little game in Narrat. But I’m getting an error when I try. Any ideas what I can to to troubleshoot or fix? These are the lines from the Powershell command line (error messages in the 2nd half of the messages):

PS C:\Users\migue\Desktop\General\proyectos creativos\Narrat\fairy_tale_town> npm run make

fairy_tale_town@3.7.1 make
electron-forge make

√ Checking your system
√ Loading configuration
√ Resolving make targets
› Making for the following targets: squirrel
√ Running package command
√ Preparing to package application
√ Running packaging hooks
√ Running generateAssets hook
√ Running prePackage hook
√ Packaging application
√ Packaging for x64 on win32 [10s]
√ Running postPackage hook
√ Running preMake hook

Making distributables
× Making a squirrel distributable for win32/x64
› Failed with exit code: 1
Output:
Intentando compilar el paquete desde ‘Your game name.nuspec’.
The package ID ‘Your game name’ contains invalid characters. Examples of valid package IDs include ‘MyPackage’ and ‘MyPackage.Sample’.
■ Running postMake hook

An unhandled rejection has occurred inside Forge:
Error: Failed with exit code: 1
Output:
Intentando compilar el paquete desde ‘Your game name.nuspec’.
The package ID ‘Your game name’ contains invalid characters. Examples of valid package IDs include ‘MyPackage’ and ‘MyPackage.Sample’.
at ChildProcess. (C:\Users\migue\Desktop\General\proyectos creativos\Narrat\fairy_tale_town\node_modules\electron-winstaller\lib\spawn-promise.js:49:24)
at ChildProcess.emit (node:events:518:28)
at ChildProcess.emit (node:domain:488:12)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)

In the package.json, there’s a whole section for electron build options for various OS including names. This particular field probably doesn’t allow spaces, so just put a name without spaces

1 Like