The format of the URI could not be determined
See original GitHub issueWhat version of electron-installer-windows
are you using?
0.2.0
What version of node
and npm
are you using?
v6.3.1 and 3.10.3
What operating system are you using?
Windows 10 (Latest build)
Can you compile the example app successfully?
Yes. Although the app doesn’t start for whatever reason
What did you do? Please include the configuration you are using for electron-installer-windows
.
Building the installer with the minimum options passed. Just an src and a dist folder.
electron-installer-windows --src ./OLS-Educ2-win32-x64/ --dest dist/installers/
What did you expect to happen?
An installer is born
What actually happened?
A huge error stack which boils down to this: “The format of the URI could not be determined”.
I have seen in older issues that this issue stems from an incorrect icon path, however whether I pass one (http link to whatever icon) or not, the issue remains.
Here is the full text of the error: `C:\Users\Samir\Documents\school5.electrify.dist>electron-installer-windows --src OLS-Educ2-win32-x64/ --dest dist/installers/ (node:1396) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. Creating package (this may take a while) Error: Error creating package: Error executing file (1): C:\Users\Samir\AppData\Roaming\npm\node_modules\electron-installer-windows\vendor\nuget\NuGet.exe pack C:\Users\Samir\AppData\Local\Temp\electron-11676-1396-6ja5k0.9hjn8w7b9\OLS-Educ2_0.1.0\nuget\OLS-Educ2.nuspec -BasePath C:\Users\Samir\AppData\Local\Temp\electron-11676-1396-6ja5k0.9hjn8w7b9\OLS-Educ2_0.1.0\OLS-Educ2 -OutputDirectory C:\Users\Samir\AppData\Local\Temp\electron-11676-1396-6ja5k0.9hjn8w7b9\OLS-Educ2_0.1.0\nuget -NoDefaultExcludes Invalid URI: The format of the URI could not be determined.
at C:\Users\Samir\AppData\Roaming\npm\node_modules\electron-installer-windows\src\installer.js:273:21
at ChildProcess.<anonymous> (C:\Users\Samir\AppData\Roaming\npm\node_modules\electron-installer-windows\src\installer.js:62:5)
at emitTwo (events.js:111:20)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12) 'Error: Error creating package: Error executing file (1): \nC:\\Users\\Samir\\AppData\\Roaming\\npm\\node_modules\\electron-installer-windows\\vendor\\nuget\\NuGet.exe pack C:\\Users\\Samir\\AppData\\Local\\Temp\\electron-11676-1396-6ja5k0.9hjn8w7b9\\OLS-Educ2_0.1.0\\nuget\\OLS-Educ2.nuspec -BasePath C:\\Users\\Samir\\AppData\\Local\\Temp\\electron-11676-1396-6ja5k0.9hjn8w7b9\\OLS-Educ2_0.1.0\\OLS-Educ2 -OutputDirectory C:\\Users\\Samir\\AppData\\Local\\Temp\\electron-11676-1396-6ja5k0.9hjn8w7b9\\OLS-Educ2_0.1.0\\nuget -NoDefaultExcludes\nInvalid URI: The format of the URI could not be determined.\r\n\n at C:\\Users\\Samir\\AppData\\Roaming\\npm\\node_modules\\electron-installer-windows\\src\\installer.js:273:21\n at ChildProcess.<anonymous> (C:\\Users\\Samir\\AppData\\Roaming\\npm\\node_modules\\electron-installer-windows\\src\\installer.js:62:5)\n at emitTwo (events.js:111:20)\n at ChildProcess.emit (events.js:191:7)\n at maybeClose (internal/child_process.js:852:16)\n at Socket.<anonymous> (internal/child_process.js:323:11)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:188:7)\n at Pipe._handle.close [as _onclose] (net.js:492:12)'`
Thank you for taking the time.
Issue Analytics
- State:
- Created 7 years ago
- Comments:15
Top GitHub Comments
@Wqrld Since your icon is a local file, you should use
icon
instead:I had same issue. I noticed projectUrl in .nuspec file is incorrect. After I added homepage to package.json, this issue disappeared.