Skip to content

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

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

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 [email protected]: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: [email protected]:<username>/<username>.github.io.git
    branch: master
  - type: git
    repo: [email protected]:<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. ^_^

@revan-zhang
Copy link
Contributor

@NoahDragon @codefalling

at npm@5 it seems doesn't support npm install [email protected]: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