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.

Scripts with a space in name are not executed

See original GitHub issue

I have some scripts in my package.json with a space in the name. I don’t want to use “-” or “_” between words because i have a user-friendly GUI that reads these strings. Can you add support for this? Example:

"scripts": {
    "Install on server": "rm -r node_modules & npm install"
}

Error: npm ERR! missing script: Install

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
egammacommented, Oct 14, 2016

@Oneiros90 just published, sorry for the delay.

0reactions
Oneiros90commented, Oct 17, 2016

Awesome, thank you. It works perfectly

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble in script with spaces in filename - Unix Stack Exchange
I've got a script that scp's a file from remote host back to local. Sometimes the file names contain spaces. scp does not...
Read more >
Folder with space in name not recognized - Stack Overflow
The script will appear to work until you try to handle file names with irregular spacing or literal asterisks, etc.).
Read more >
Fix Problem Where Windows PowerShell Cannot Run Script ...
Run script path with spaces from PowerShell console​​ The trick is that you have to put “& “ before the script path to...
Read more >
Can not stat over a file name having space in it - Super User
To allow it to handle spaces, enclosing the filename in quotes has allowed the script to deal with spaces in the filename.
Read more >
How to run a script with spaces in its name? - MATLAB Answers
No, you cannot do that, not even using run(). Script file names and function file names are required to use the same semantic...
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