首页 > 其他分享 >How to install a npm package from the GitHub repository All In One

How to install a npm package from the GitHub repository All In One

时间:2023-08-29 19:35:43浏览次数:35  
标签:npm GitHub repository github https xgqfrms wcui com

How to install a npm package from the GitHub repository All In One

git repo

$ git+https://github.com/xgqfrms/wcui.git
$ git+ssh://[email protected]/xgqfrms/wcui.git


$ npm install https://github.com/xgqfrms/wcui/tree/v1.1.2

$ npm install [email protected]:xgqfrms/wcui.git

image

github

# GitHub URI
$ npm i github:username/repo
$ npm i github:username/repo#branch
$ npm i github:username/repo#tag

$ npm i github:xgqfrms/wcui#main

$ npm install 'xgqfrms/wcui#main'
$ npm install 'xgqfrms/wcui#v1.1.2'

https://github.com/xgqfrms/wcui/tree/main
https://github.com/xgqfrms/wcui/tree/v1.1.2

https://gitpkg.vercel.app/

npm

image

https://github.com/xgqfrms/wcui/pkgs/npm/wcui

solutions

npm script hooks

Life Cycle Scripts

{
  "scripts": {
    "preinstall": "call the install script"
  }
}
{
  "scripts": {
    "prepack": "call the build script"
  }
}

https://docs.npmjs.com/cli/v9/commands/npm-install

https://docs.npmjs.com/cli/v9/using-npm/scripts

demos

$ npm i github:xgqfrms/wcui#main

# 

标签:npm,GitHub,repository,github,https,xgqfrms,wcui,com
From: https://www.cnblogs.com/xgqfrms/p/17664215.html

相关文章

  • 执行npm install 命令时报错Error: EPERM: operation not permitted, uv_cwd
    执行npminstall命令时报错path.js:1077path=process.cwd();^Error:EPERM:operationnotpermitted,uv_cwdatObject.resolve(path.js:1077:24)检查一下当前所在的文件夹是否已被删除了。......
  • Steam++加速github,会导致github图床上传失败
    PicGo日志报错信息"message":"unabletoverifythefirstcertificate",原因软件:PIcGO图床:github加速器:Steam++(又称:WattToolkit)由于Steam++安全证书问题,会导致unabletoverifythefirstcertificate,无法验证第一证书问题。关闭加速器即可解决......
  • 如何在github或gitlab中将upstream项目中的新分支添加到fork后的origin项目中?
    1、问题:在gitlab或github中,将某项目进行了fork,fork后在自己的项目空间中就有了自己的origin项目,之后如果在源项目(upstream项目)中添加了新的分支,但是在自己的origin项目中不会被同步添加上,这就需要自己去添加这个分支(假如分支名为:new)。2、解决:要将新的分支添加到自己的origin项......
  • github.com/mitchellh/mapstructure 教程
    官网链接:github.com/mitchellh/mapstructure本文只是简单的记录下mapstructure库的简单使用,想更加详细的学习,点击Godoc学习吧。文中内容基本都是来自后面的参考链接。github.com/mitchellh/mapstructure是一个用于将通用的map值解码为结构体(struct)并进行错误处理的Go......
  • github.com/json-iterator/go 详细教程
    最近接触到了github.com/json-iterator/go,是由滴滴开源的第三方json编码库,它同时提供Go和Java两个版本。文中大量内容来自github上的wiki文档,有兴趣的朋友可以直接点击Home跳转到官方文档查阅。本文加了些自己的思考以及相关的详细学习例子,废话不多说了,冲!!!1、基础介......
  • Adding a gitolite-controlled repository to Redmine
    Currently,weuse gitolite toaccesscontrolourGitrepositories.Inaddition,weuse Redmine tomanageourprojects.ThestandardinstallationofRedminecanonlyaccessalocalGitrepositoryviadirectaccesstothefilesystem.Unfortunately,Redmine......
  • vue npm install报错
    PSI:\Vue3+ts+e-plus后台管理\vue3-ts-element-plus-master\vue3-ts-element-plus-master>npminstallnpmERR!codeERESOLVEnpmERR!ERESOLVEcouldnotresolvenpmERR! npmERR!Whileresolving:[email protected]!Found:[email protected]!node_......
  • [转]vcpkg+opencv4(sfm+vtk)+openMVS+SFM算法-github代下载(http://gitd.cc/)
    1、vcpkg+opencv4(sfm+vtk)+openMVS+SFM算法-github代下载(http://gitd.cc/)2、OpenMVS详细安装教程(ubuntu18.04)3、ubuntu18.04安装openMVS......
  • 利用GitHub 的Actions自动同步gitee仓库,并Gitee Pages 自动部署项目
    Gitee同步GitHub仓库GitHub有时候访问速度慢,加载不了图片等问题。过程记录GitHub的Actions会处理.github下的工作流文件夹workflows。只要在g项目根目录下创建.github/workflows/,在这个文件夹里再创建Sync.yml文件,填入以下代码。当产生push操作就会自动同步gitee<divid="......
  • github中文社区
    GitHub是世界上最大的代码托管平台,超7千万开发者正在使用。GitHub中文社区是一个致力于分享和传播GitHub上优质开源项目的中文社区平台。 原来的githubs.cn打不开了,换地址了https://github-zh.comGitHub中文社区|GitHub中文网(github-zh.com)......