Compatibility with pnpm
See original GitHub issuepnpm is a fast implementation of npm install
with the following features:
- much faster dependencies installation
- important disk usage reduction
- installation progress is displayed very nicely
Unfortunately, ava is not compatible with it as pnpm
use symlinks to install the deps which makes ava complain:
$ npm test
> @ test issue-ava-pnpm
> ava
WARNING: `npm link ava` and the `--preserve-symlink` flag are incompatible. We have detected that AVA is linked via `npm link`, and that you are using either an early version of Node 6, or the `--preserve-symlink` flag. This breaks AVA. You should upgrade to Node 6.2.0+, avoid the `--preserve-symlink` flag, or avoid using `npm link ava`.
1 exception
✖ No tests found in test.js, make sure to import "ava" at the top of your test file
npm ERR! Test failed. See above for more details.
Example repository: https://github.com/julien-f/issue-ava-pnpm
It would be very nice if it could be fixed 😄
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Installation
Do you wanna use pnpm on CI servers? See: Continuous Integration. Compatibility. Here is a list of past pnpm versions with respective Node.js...
Read more >PNPM Compatibility DB
Both Yarn and PNPM support a feature called the Compatibility DB, which is a public database of package.json fixups. These fixups solve known...
Read more >pnpm
A package can access only dependencies that are specified in its package.json . Deterministic. Has a lockfile called pnpm-lock.yaml . Works as a...
Read more >JavaScript package managers compared: npm, Yarn, or ...
pnpm uses the same configuration mechanism as npm, so you can use a .npmrc file. Configuring a private registry also works the same...
Read more >gatsby-plugin-pnpm
PNPM Compatibility Plugin for Gatsby codecov Description This plugin will configure Webpack module & loader resolution for packages…
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@zkochan I only want what’s best for pnpm because it’s much nicer to use than npm 😃
Adding a property to ava’s package.json looks like the best approach but it’s not up to me (@sindresorhus, what’s your opinion on this?).
I don’t know whether this was fixed on ava’s end but the latest version of pnpm does not require
--preserve-symlinks
. It is used by default for now, but you can set thepreserve-symlinks
config tofalse
by runningnpm config set preserve-symlinks false
and ava should work fine.In case of questions feel free to open an issue on pnpm, or write me on gitter/twitter