Comments (7)
I'm just trying to test a shared config myself before publishing to make sure it works.
Doesn't matter though - I figured I'll just use yarn link
.
Thank you for your time & help:)
from install-peerdeps.
No eslint things should be installed globally; eslint v6 forces local installs more aggressively anyways.
from install-peerdeps.
Global things aren’t requireable, so theycant satisfy peer dep requirements anyways.
from install-peerdeps.
No eslint things should be installed globally; eslint v6 forces local installs more aggressively anyways.
Yeah I've tried to get everything working with eslint 6.x
but wasted wayyy too much time and it didn't. Went back to 5.x
and it's awesome now (both prettier, eslint & typescript work together) 🚀
Global things aren’t requireable, so they_cant_ satisfy peer dep requirements anyways.
Don't understand this, could you elaborate?
from install-peerdeps.
Yes. You can’t require()
global packages, only run them on the command line. Peer deps are for things your package requires, in its code. Global packages this only make sense when they have no peer deps, which aces out any eslint things.
from install-peerdeps.
I mean installing the peerDeps before publishing lets me test eslint out from the command line to make sure it's working fine, so the globally installed peerDeps do make a difference (I suppose?).
from install-peerdeps.
I’m not sure what you mean. If you want to test a shared config before publishing, you’d npm link it, and each of its peer deps, into another project (or, install it from git in the other project).
from install-peerdeps.
Related Issues (20)
- 'request' package needs to be replaced
- ERR spawn npm ENOENT HOT 21
- Fix issue with `child_process.spawn` on Windows
- Move tests to GitHub Actions, add Windows Tests HOT 11
- `ERR undefined` with v3.0.1 when running on Windows 10 HOT 5
- Feature request: Install from package.json
- Do we have the actual source code for this tool? HOT 3
- Cannot read property 'forEach' of undefined HOT 8
- should not error when there are no peer dependencies; just quietly install the package and move on HOT 3
- ERR: undefined when installing eslint-config-airbnb HOT 7
- --no-registry flag does not work HOT 2
- ERR Unexpected end of JSON input HOT 5
- `@babel/polyfill` warning HOT 3
- Install peer deps using absolute url
- `ERR undefined` with v3.0.3 install-peerdeps HOT 4
- Feature Request: Add ability to ignore some peerDependencies HOT 4
- load package version failure when using yarn@3
- --no-registry not work HOT 1
- install-peerdeps `ERR undefined` on windows HOT 6
- Installing with Yarn via `yarn dlx` or `npx` ends in success with no package.json updates or changes
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 install-peerdeps.