question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility with pnpm

See original GitHub issue

pnpm 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
julien-fcommented, Oct 5, 2016

@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?).

0reactions
zkochancommented, Jan 10, 2017

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 the preserve-symlinks config to false by running npm 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found