Comments (7)
支持这种模式会导致所有从 git 安装都会很慢(因为要 clone 整个项目才能找到这个 commit),而且从 git 的一个 commit 安装也很不靠谱,所以 npminstall 暂时不会去对这个做支持
from npminstall.
可否使用 github 的 api 直接下载指定 commit 的 archive:
https://github.com/foo/bar/archive/commit-hash.zip
这样就不用下载整个 repo 了
因为使用这种依赖的大都不是自己直接使用, 而是依赖树上的某个包, 偶尔引用某个包时就会踩坑了
from npminstall.
你直接写 https://github.com/hegemonic/taffydb/tarball/7d100bcee0e997ee4977e273cdce60bd8933050e
不要写 git 协议
from npminstall.
from npminstall.
问题主要是依赖定义不是自己写的, 而是某个依赖的依赖的依赖等等, 这个不好直接到上游去修改
from npminstall.
from npminstall.
嗯,在处理了。
from npminstall.
Related Issues (20)
- TypeError: randomUUID is not a function HOT 5
- ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time HOT 3
- 错误码改造
- 不支持读取.npmrc配置 HOT 5
- RFC: npminstall rapid install 模式的优化 HOT 1
- 支持去幽灵依赖安装模式 HOT 1
- support peerDependenciesMeta HOT 2
- 生成的 bin 文件需要注入 NODE_PATH HOT 3
- 幽灵依赖实在太多,得遵循 pnpm 的兜底 node_modules 行为
- Symbolic links don't work in windows
- anti semver 提示需要改进
- npminstall 只能在commonjs规范项目中使用么 HOT 2
- 给 semver 加一个缓存 HOT 6
- support offline mode
- run scripts on background
- 在linux下安装nice-napi报错
- Take a look at `clonefile`
- 使用rollup@rollup/plugin-commonjs插件,打包遇到npminstall()时解析报错 HOT 2
- [Bug] npminstall<latest> cannot be used with 14.17.3 node HOT 3
- cnpm安装依赖时npminstalll报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npminstall.