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, 2020 in Angular by kartik
• 37,530 points
3,973 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, 2020 by Niroj
• 82,820 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 Jun 4, 2020 in Angular by Niroj
• 82,820 points
1,005 views
0 votes
1 answer

How to check empty object in angular template using *ngIf?

Hello @kartik, Use this: <div class="comeBack_up" *ngIf="(previous_info | json) ...READ MORE

answered Sep 8, 2020 in Angular by Niroj
• 82,820 points
6,239 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, 2020 in Angular by Niroj
• 82,820 points
199 views
0 votes
1 answer

How can we provide condition based on certain resolve result obtained in routing with resolve?

Hey,  Let me consider that you have some ...READ MORE

answered Feb 11, 2020 in Angular by Niroj
• 82,820 points
292 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, 2020 in PHP by Niroj
• 82,820 points
566 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, 2020 in Java-Script by Niroj
• 82,820 points
2,957 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, 2020 in PHP by Niroj
• 82,820 points
737 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, 2020 in PHP by Niroj
• 82,820 points
234 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, 2020 in Angular by Niroj
• 82,820 points
2,703 views