Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'rimraf' is not recognized as an internal or external command #1997

Closed
diepvv opened this issue Mar 22, 2018 · 11 comments
Closed

'rimraf' is not recognized as an internal or external command #1997

diepvv opened this issue Mar 22, 2018 · 11 comments

Comments

@diepvv
Copy link

diepvv commented Mar 22, 2018

I run "npm start" and comandline throw error "'rimraf' is not recognized as an internal or external command" how can i fix?

@diepvv
Copy link
Author

diepvv commented Mar 22, 2018

image

@vladimirarmedia
Copy link

rimraf is the UNIX command rm -rf for node.
You need to install it with npm install rimraf -g.

@almothafar
Copy link
Contributor

almothafar commented Apr 4, 2018

you just need to read the instructions in readme:

npm install webpack-dev-server rimraf webpack -g to install required global dependencies

@lanovoy
Copy link
Contributor

lanovoy commented Apr 11, 2018

That's actually something that we might want to consider updating to be referenced from the local install. Since rimraf, webpack and webpack-dev-server are already listed as dependencies for angular-starter, their binaries (well, cmd's actually) are located under the ./node_modules/bin folder. So if we modify

    "clean:dist": "rimraf dist",

to

    "clean:dist": "./node_modules/bin/rimraf dist",

It should work. I'm personally not a big fan of global dependencies...

@almothafar
Copy link
Contributor

Well, rimraf is very helpful even for normal user use, and in 95% of all dependencies and project that I saw or used, using rimraf.

@lanovoy
Copy link
Contributor

lanovoy commented Apr 11, 2018

@almothafar Maybe, but in that case we should remove rimraf from dependencies, as there is really no point to have it installed both globally and locally, right?

@almothafar
Copy link
Contributor

@lanovoy I think local one does not hurt, also, it can be helpful for running local version for deleting some folders like dist, but without global one deleting node_modules will be impossible if you run the local one.

@alanhg
Copy link

alanhg commented Oct 15, 2019

I have the same problem

@saiMedavarapu
Copy link

Delete the node modules folder and do npm install. That should work.

@jimmyFlash
Copy link

@VladimirRadeski suggestion

rimraf is the UNIX command rm -rf for node.
You need to install it with npm install rimraf -g.

solved it for me.
I have to say though, i'm not a fan of installing packages globally and also i have the it installed locally in my project

@furrybaer
Copy link

failed for me too. Deleted node_modules folder, get error: self signed certificate in certificate chain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants