angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Error while deploying to github-pages

Open dancancro opened this issue 10 years ago • 5 comments

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.

dancancro avatar Jul 21 '16 03:07 dancancro

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

chiroptical avatar Jul 21 '16 16:07 chiroptical

That's odd.

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

dancancro avatar Jul 21 '16 20:07 dancancro

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

dancancro avatar Jul 21 '16 20:07 dancancro

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

srivasrk avatar Aug 14 '16 16:08 srivasrk

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.