Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"git+git": name can only contain URL-friendly characters #86

Closed
codefine opened this issue Oct 11, 2017 · 3 comments
Closed

"git+git": name can only contain URL-friendly characters #86

codefine opened this issue Oct 11, 2017 · 3 comments

Comments

@codefine
Copy link

When I use $ npm install git+git@github.com:hexojs/hexo-deployer-git.git --save to install the lasted feature of hexo-deployer, it report the message like this:
Invalid package name "git+git": name can only contain URL-friendly characters

Help me solve this problem plz.

@NoahDragon
Copy link
Member

Have you tried the npm i hexojs/hexo-deployer-git --save?

@codefine
Copy link
Author

codefine commented Oct 12, 2017

Sorry, I made some mistakes. This issue can be closed.
I want to deploy like this:

deploy:
  - type: git
    repo: git@github.com:<username>/<username>.github.io.git
    branch: master
  - type: git
    repo: git@github.com:<username>/<username>.github.io.git
    branch: src
    extend_dirs: /
    ignore_hidden: false
    ignore_pattern:
        public: .

It reported some errors so that I thought the config above must be ran with the lasted released.
But now it works~
Thanks alot. ^_^

@loatheb
Copy link
Contributor

loatheb commented Oct 13, 2017

@NoahDragon @codefalling

at npm@5 it seems doesn't support npm install git+git@github.com:hexojs/hexo-deployer-git.git any more. So update another command for npm@5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants