You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
create-react-app does not clean up directory after failed install on Windows #1671
first intention was right. On windows the create-react-app process is currently locking the directory and therefor the deletion operation will not perform anything.
Simple fix would be to introduce a process.chdir(path.resolve(root, '..')); before the fs.removeSync(path.join(root));
Activity
johann-sonntagbauer commentedon Feb 28, 2017
I can take a look at that one (windows user :) )
johann-sonntagbauer commentedon Feb 28, 2017
first intention was right. On windows the create-react-app process is currently locking the directory and therefor the deletion operation will not perform anything.
Simple fix would be to introduce a
process.chdir(path.resolve(root, '..'));before thefs.removeSync(path.join(root));kinda ugly but works
Timer commentedon Feb 28, 2017
Not ugly, thanks!