Error:getting “ENOTEMPTY: directory not empty, rmdir …” error on installing express in angular CLI app.

0 votes

I am creating my first MEAN app. I have installed angular CLI and also tested it using ng serve -o this command then i build app using ng build which also succeeded.

Now when I am trying to install "express" and "body-parser" I am getting following error

ENOTEMPTY: directory not empty, rmdir '/media/iconflux/DATA/vinit/Mean/meanApp/node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus'

I checked the directory it is empty. I also tried manually deleting the directory but still no success.

Here is the command i am using to install express and body-parser

npm install --save express body-parser
Apr 22 in Angular by kartik
• 11,890 points
102 views

1 answer to this question.

0 votes
Hello Kartik,

Use this command : npm install --save express body-parser --force

Thank You!!
answered Apr 22 by Niroj
• 23,950 points

Related Questions In Angular

0 votes
1 answer

Error:XMLHttpRequest GET not working in React.js

Hello @kartik, You should populate data with AJAX ...READ MORE

answered 2 days ago in Angular by Niroj
• 23,950 points
11 views
0 votes
1 answer

How can we go back to previous page after having some error on request made through current page ?

$route is used for deep-linking URLs to controllers ...READ MORE

answered Feb 11 in Angular by Niroj
• 23,950 points
47 views
0 votes
1 answer
0 votes
1 answer

How to detect a route change in Angular?

Hii Kartik For Angular 7 someone should write like: this.router.events.subscribe((event: Event) ...READ MORE

answered Apr 22 in Angular by Niroj
• 23,950 points
385 views
0 votes
1 answer

What are the vulnerability related to PHP Form?

Hii, The $_SERVER["PHP_SELF"] variable can be used by ...READ MORE

answered Feb 13 in PHP by Niroj
• 23,950 points
71 views
+1 vote
1 answer

How can we send message multiple time to a specific person or group in whatsapp using loop?

Hii @kartik,  This is simple task to send single ...READ MORE

answered Feb 28 in Java-Script by Niroj
• 23,950 points
250 views
0 votes
1 answer

What is meant by passing the variable by value and reference in PHP?

Hello, When the variable is passed as value ...READ MORE

answered Mar 27 in PHP by Niroj
• 23,950 points
41 views
0 votes
1 answer

Connection with MySQL server using PHP. How can we do that?

Hey @kartik, You have to provide MySQL hostname, ...READ MORE

answered Mar 27 in PHP by Niroj
• 23,950 points
44 views
0 votes
1 answer

Error while installing angular/cli using npm

Hello @kartik, First of all, all the things ...READ MORE

answered Apr 22 in Angular by Niroj
• 23,950 points
204 views