'RM' is not recognized as an internal or external command while using Meteor on Windows
Asked Answered
A

12

42

i am currently having problem with 'meteor' and i am currently new to this learning this stuff. So, after installing 'Meteor' i opened command prompt on Windows and typed :

meteor create goodboy

and then,

cd goodboy

But to delete the live and already running example app, i used :

rm goodboy.*

But the command prompt, gave this error :

rm is not recognized as an internal or external command, operable program or batch file.

Is there anyway i can fix this error, thank you.

Aminopyrine answered 17/10, 2015 at 16:11 Comment(4)
Which operating system are you using?Theresita
@DavidWeldon i am using windows 10.Aminopyrine
So you mean del goodboy.*? Also see this question.Theresita
Did you mean git rm file ?Smocking
B
61

Use del on Windows.

Also, this has nothing to do with Meteor. You can also delete a Meteor project by going to the folder and dragging it to the trash.

Bedchamber answered 18/10, 2015 at 13:1 Comment(0)
G
51

If you are on windows, git bash may run such commands.

Gobert answered 14/3, 2018 at 16:11 Comment(1)
That works, thanks! It is so usefull for me in situation when I have scripts for linux in my project but I work on windows.Wittgenstein
S
21

If you are using Mac then we can simply use

rm -f src/*

and For windows we can use command for this is

 del -f "src/*"

Hope this works fine for you.

Shaikh answered 4/7, 2018 at 10:50 Comment(0)
S
7

Download and Extract PortableGit.

This has most of commonly used Linux based tools ported to windows.

Add [PortableGit Path]\usr\bin to PATH variable of Windows

You can also use your system's Git installation instead of PortableGit.

This should solve the problem

Strachan answered 2/2, 2020 at 9:0 Comment(1)
This was really useful! A small tip: on windows 10 default path with git utilities will be "C:\Program Files\Git\usr\bin"Calumniate
P
4

My penny's worth.

You could potentially add rm to powershell. In your (or a) profile.ps1 (or other if your powershell is not core).

rm {
  del
}

or as an alias

Set-Alias rm del

or (and this is a tricky one), run WSL, bind the target folder and run via the linux interface.

PS: running the command via the Git Bash (MINGW64) terminal as suggested above, did the trick for me.

Pule answered 20/8, 2020 at 8:43 Comment(0)
G
3

I'm running Git shell prompt and for some reason it doesn't have it any more. I ended up using Cygin to get it working:

https://www.cygwin.com/

Galenical answered 20/10, 2019 at 1:14 Comment(0)
H
2

I guess you are not using the Git Bash terminal but the normal command prompt. Do try the same on the Git Bash terminal and you would not face this error anymore.

Handfast answered 12/9, 2022 at 21:5 Comment(1)
That question is not related to Git Bash at allCockleshell
P
1

I guess you are not using bash terminal. Try this..

1- Go to the folder that you want to remove its contents lets call it my-app folder.

2- Right click in the empty space, then choose get Bash here.

3- Paste the command rm -f A_folder/* (I'm about to remove the content inside A_folder folder which is a sub-folder inside my-app).

4- Hit enter.

That should remove all content from A_folder folder. Hope that helps.

Pagano answered 11/11, 2018 at 0:34 Comment(0)
N
1

you should add "remove-build": "rmdir /s /q build", "create-build": "mkdir build", "clean": "npm run remove-build && npm run create-build",

in package.json

Norris answered 11/1, 2022 at 2:14 Comment(0)
P
1

Install the Unix Utils package for Windows, which includes the "rm" command. You can download it from here:

https://sourceforge.net/projects/unxutils/

Add the path to the Unix Utils package to your system's environment variables.

To do this, follow these steps:

Open the Start menu and search for "Environment Variables".

Click on "Edit the system environment variables".

Click on the "Environment Variables" button.

Under "System Variables", scroll down and find "Path" and click "Edit".

Click "New" and add the path to the Unix Utils package (e.g. C:\Program Files\UnixUtils\usr\local\wbin).

Click "OK" on all windows to save your changes.

Close and reopen your terminal window to apply the changes.

Pheidippides answered 30/3, 2023 at 19:3 Comment(0)
L
0

first, install linux clients for windows, I use Ubunto LTS then install node.js and run your command again. here, you find good instructions to do it so, as well as how to install cool new Windows Terminal

Lutherlutheran answered 20/7, 2020 at 9:7 Comment(0)
F
0

you can try use git bash because rm only work on it, if you are using windows default terminal maybe del command can work with you.

Firebird answered 10/11, 2023 at 7:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.