Angular-cli: Error while deploying to github-pages

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

OS?

Mac OSX (El Capitan)

Versions.

angular-cli: 1.0.0-beta.10
node: 4.4.0
os: darwin x64

Repro steps.

ng github-pages:deploy --message "First deployment"

The log given by the failure.

Built project successfully. Stored in "dist/".
fs.js:60
      throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs
      ^

Error: ENOTEMPTY: directory not empty, rmdir '/Users/Dan/work/bernierebuttals/bernierebuttals/dist/vendor/@angular/platform-browser/src/'
    at Error (native)
  1. Mention any other details that might be useful.
This is my first try at doing this.
I stopped the server before running the command.

Most helpful comment

Hang on... I forgot to stop the server before those couple of times. After I did that, I tried it again and it worked.

All 5 comments

Did you try it multiple times? This happened to me yesterday, but running the command a second time worked.

That's odd.

I tried it a couple more times but had the same results.

Hang on... I forgot to stop the server before those couple of times. After I did that, I tried it again and it worked.

I had to delete the dist folder, stop the server ng serve, and execute the deploy again.

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