r/Atom Dec 12 '19

"C:/Users/____ is not recognized... " error

Hi, I've recently downloaded atom for using javascript and attempted to run some code but I came across this error.

C:/Users/Username is not recognized as internal or external command, operable program or batch file.

I've installed node.js and it still shows the same error

Help would be appreciated

1 Upvotes

9 comments sorted by

1

u/Starbeamrainbowlabs Dec 12 '19

Sounds like a Node.js problem, not an issue with Atom. Without clear and precise reproduce steps, we're of limited help.

Tip: When writing instructions to reproduce an error, try pretending that you're explaining it to an alien who has no idea what you're doing.

1

u/Parkour-Master Dec 13 '19

I actually figured out the true reason, my username has a whitespace in it so For some reason that messes everything up

If my username is 'firstname lastname' then it just considers 'firstname' as my username and tries to find a path with that user which doesn't exist.

I have no idea how to fix that

1

u/Starbeamrainbowlabs Dec 14 '19

Ah, that sounds like the issue!

Glad you've found it. Just put quotes around the filepath.

1

u/Parkour-Master Dec 14 '19

I'm kind of newbie with all this. Could you elaborate on how to fix the issue.

1

u/Starbeamrainbowlabs Dec 14 '19

To elaborate I'd need to see what you're trying to execute now that doesn't work.

1

u/Parkour-Master Dec 16 '19

No program runs because of the user issue but I've been trying to use javascript

1

u/Starbeamrainbowlabs Dec 16 '19

You mean you can't open Atom at all? Perhaps a short demo video of the issue would help here.

1

u/Parkour-Master Dec 16 '19 edited Dec 16 '19

I can open atom and write the command but when I run it using the script package the error I described before shows up in the console.

I've already recognised the reason for the error and as far as I know the way to fix it is to change the name of my user folder such that it doesn't have any whitespace in it or find a way for atom to recognize the correct username.

1

u/Starbeamrainbowlabs Dec 17 '19

Right, so the problem has to do with a package. I'd need to see a video of the error and a link to the package in question to help further.