← 输入框|github.com|刷新
Skip to content

$ ng github-pages:deploy fails to delete src/client/app and wipes the directory #601

Closed

Description

@Aidurber

I'm trying to deploy to github pages however it's failing remove "src/client/app", and wiping my directory.

OS: Microsoft Windows 10 Pro, Version 10.0.10586 Build 10586

Versions:

angular-cli: 0.0.34
node: 5.0.0
os: win32 x64

Repro steps

  1. Committed all changes
  2. Ran ng github-pages:deploy --message "Optional commit message

Log

$ ng github-pages:deploy --message "Optional commit message"
Built project successfully. Stored in "dist/".
Command failed: C:\WINDOWS\system32\cmd.exe /s /c "git clean -f -d"
warning: failed to remove src/client/app

Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "git clean -f -d"
warning: failed to remove src/client/app

    at ChildProcess.exithandler (child_process.js:203:12)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

Full source is here if needed: https://github.com/Aidurber/Ng2-ImgurClone

Activity

  1. Aidurber commented on May 2, 2016

    @Aidurber
    Author

    Sorry guys, I should have investigated further. Atom editor was holding onto the folder. Closing

  2. filipesilva commented on May 2, 2016

    @filipesilva
    Contributor

    You're right though, the error message doesn't help at all really. I was getting the same. Yesterday a PR landed that makes the message a bit better: 7dc08a7

  3. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  4. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions