Angular-cli: ng build -prod: Error: ENOTEMPTY: directory not empty, rmdir dist/vendor/rxjs/

Created on 21 Jul 2016  路  6Comments  路  Source: angular/angular-cli

ng build -prod
(node:7057) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
Built project successfully. Stored in "dist/".
File sizes:
fs.js:95
      throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs
      ^
Error: ENOTEMPTY: directory not empty, rmdir dist/vendor/rxjs/'  at Error (native)

Most helpful comment

That error is usually due to the dir being open somewhere. Common culprits are ng serve, the editor you're using (VSCode for instance), or having the folder open in explorer. Try closing all of those.

All 6 comments

Even I'm facing the same issue. Any workaround?

That error is usually due to the dir being open somewhere. Common culprits are ng serve, the editor you're using (VSCode for instance), or having the folder open in explorer. Try closing all of those.

Removing the dist folder manually solved the problem.

Closed as this issue was made obsolete by https://github.com/angular/angular-cli/pull/1455.

None of the solutions here worked for me. Using node v10.15.3 and npm 6.10.2

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

delasteve picture delasteve  路  3Comments

brtnshrdr picture brtnshrdr  路  3Comments

donaldallen picture donaldallen  路  3Comments

hartjo picture hartjo  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments