Scripts with a space in name are not executed
See original GitHub issueI 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:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Oneiros90 just published, sorry for the delay.
Awesome, thank you. It works perfectly