question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App name cannot have special path characters in it

See original GitHub issue

With a package.json with

"name": "@mycompany/test-project"

ENOENT: no such file or directory, rename ‘/var/folders/8y/ycvpbtbn6nx_552nqm0hkllc0000gn/T/electron-packager/darwin-x64/@mycompany/test-project-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper’ -> ‘/var/folders/8y/ycvpbtbn6nx_552nqm0hkllc0000gn/T/electron-packager/darwin-x64/@mycompany/test-project-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/@mycompany/test-project Helper’

Which version of electron-packager are you using?

Using electron-packager version 6.0.0

What CLI arguments are you passing? Alternatively, if you are using the API, what parameters are you passing to the packager() function?

Using command:

electron-packager . --platform=darwin --arch=x64

This happens no matter which OS I try on and no matter what platform target I use.

What version of Electron are you building with?

v0.36.9

What is the host platform are you running electron-packager on?

OS X, Linux

What target platform(s)/architecture(s) are you building for?

OS X, Linux, Windows

Please provide either a failing testcase or detailed steps to reproduce your problem.

Steps to reproduce:

  1. Name your package to something with a ‘/’ in it
  2. Try to run packager

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Apr 7, 2016

As a workaround, you should set productName in package.json to test-project (or something without a slash).

0reactions
maleptcommented, Aug 15, 2016

I made a first cut at fixing this in #455. It’s a bit more involved than you’d think, particularly since there are a lot of files that use the Electron app’s name. (And I want to have unit tests for as much of it as possible.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting error "App folder name cannot con...
Encountered the following error while trying to save: In handler 'localapps': App folder name cannot contain spaces or special characters. I tried using...
Read more >
The Application Path cannot contain the following characters
One of the applications we are moving has a virtual directory that includes a special character for example; www.mydomain.com/j&b.
Read more >
Special Characters You Should Avoid Using and File Path ...
If the error is received while you are moving images or databases to different locations, you will need to create shorter path names....
Read more >
What characters are forbidden in Windows and Linux directory ...
"You cannot, in general, use user-generated text to create Windows directory names." <-- If you want to do this you can just have...
Read more >
Why are special characters not allowed in file names? - Quora
For example on Windows operating systems file paths start with a drive letter and a colon, so the colon is not allowed in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found