Why doesn't Yarn install all executables in a .bin folder?

I just started using the Yarn package manager and I downloaded the Ionter 2 starter project.

In this project, we have a lot of help from scripts that compile, minimize, align and link our code. All of this is provided by ionic-app-scripts , which has several dependencies that it uses to run commands.

The problem is that when I use the yarn for installation, the node_modules / folder. bin / does not contain all the necessary executables, such as tslint , which is script dependent using an ion application, so this is not directly in my package.json .

As a result, I use Yarn, ionic-app scripts do not work because it expects the .bin folder to contain the tslint executable!

What can I do? Are problems with ionic application names?

[note]: npm install works, but the yarn is much faster!

+6
source share
1 answer

This is a known issue , and there is a pull request with more information.

In short, if you want to fix this now, you will have to explicitly include packages from which you need the binaries in your dependencies.

+4
source

All Articles