Comments (4)
but it seems like we do not need npm install anymore. I have to try this, but according to npm@5 changelog
Git dependencies support semver through user/repo#semver:^1.2.3 (#15308) (#15666) (@sankethkatta)
Git dependencies with prepare scripts will have their devDependencies installed, and npm install run in their directory before being packed.
from npm-git-install.
Hi, Marek!
As far as I understand with NPM 5 you should no longer need npm-git-install. See npm/npm#3055 (comment) . This package is a workaround for the linked issue, and according to NPM team it is fixed in version 5.
I have not try it yet myself, but basically it should be enough if you move your dependencies from gitDependencies
section to standard dependencies
(or devDependencies
). Provided the dependencies have correctly set prepare
script it should just work.
Please share your experience. I'm really interested :)
from npm-git-install.
Good news! It works :)
add script to your package "prepare": "npm run build",
remove npm-git-install, remove gitDeps and add normal dep "<package-name>": "https://github.com/<repo>#<commitish-ref>",
from npm-git-install.
Awesome! Closing in favour of #24 .
from npm-git-install.
Related Issues (18)
- Speed up install times for dependencies HOT 1
- Mention exogen/postinstall-build as an alternative HOT 3
- Have a test suit HOT 1
- Write a change log
- lib directory is empty HOT 9
- React fixed-data-table issue HOT 2
- Do not npm-git-install package if already installed HOT 1
- Spawn command doesn't work on windows HOT 2
- Update nodegit HOT 2
- add support for devDependencies HOT 1
- Mention in readme that the underlying issue is fixed in NPM 5 HOT 1
- npm install succeeds but no temp directory is created for built package HOT 3
- Broken links after git clone HOT 8
- git clone hanging HOT 4
- Cannot find module '../build/Debug/nodegit.node' HOT 4
- Only works with branch names, not commit hashes HOT 2
- Welcome onboard @lambdatastic 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 npm-git-install.