ENOTEMPTY: directory not empty, rmdir
Asked 07 September, 2021
Viewed 1.9K times
  • 51
Votes

I am new in NativeScript, I tried to run my HelloWord app using NativeScript and Angular. I connected my android device and then i run command tns run android its how me following error.

Error: ENOTEMPTY: directory not empty, rmdir 'C:UsersAdminAppDataLocalTemp
untimeDir11923-7308-1ed73lj.8p03rameworkpplibs
untime-libs'                          at Object.fs.rmdirSync (fs.js:846:18)

at rmkidsSync (C:UsersAdminAppDataRoaming
pm
ode_modules
ativescript
ode_modules	emp
ode_modules
imraf
imraf.js:247:11)

at rmdirSync (C:UsersAdminAppDataRoaming
pm
ode_modules
ativescript
ode_modules	emp
ode_modules
imraf
imraf.js:237:7)

at fixWinEPERMSync (C:UsersAdminAppDataRoaming
pm
ode_modules
ativescript
ode_modules	emp
ode_modules
imraf
imraf.js:150:5)


at rimrafSync (C:UsersAdminAppDataRoaming
pm
ode_modules
ativescript
ode_modules	emp
ode_modules
imraf
imraf.js:216:26)    
at C:UsersAdminAppDataRoaming
pm
ode_modules
ativescript
ode_modules	emp
ode_moules
imraf
imraf.js:245:5

Whats wrong with me? Can you help please ?

2 Answer