madskristensen / NpmTaskRunner

Visual Studio extension
Other
88 stars 32 forks source link

Always seems to use yarn #91

Open johnwc opened 1 year ago

johnwc commented 1 year ago

Describe the bug Just recently I noticed the icon in task runner explorer is a blue silhouette of a cat. Instead of red npm icon. Every time I run a task it runs it with yarn. We do not use yarn on this project and have no yarn file in the same folder as package.json, I can't figure out why it is using yarn instead of npm. I even add "packageManager": "npm@9.0.0", to the package.json.

To Reproduce I'm really not sure how to reproduce, as I am unaware of why it is thinking it should use yarn.

Expected behavior The tasks run using npm.

Screenshots

image
dionisisZyg commented 4 months ago

Hello @johnwc Did you by any chance got any more information on the problem?

Thanks you.

johnwc commented 4 months ago

@dionisisZyg no, even on a new laptop with fresh VS install, it still uses yarn

dionisisZyg commented 4 months ago

Hmm.. The documentation and the packagemanager seem to care for .yarn files in order to pick app YARN as the package manager. This is very weird. I am under the impression that this stopped working after a certain VS version update because some time ago it was working fine. My version is: 17.9.3 Community 2022 (64-bit)

Thanks @johnwc for your reply. Did you resort to other solutions for your development environment? Personally for the time being i am executing a poweshell script in order to save time..

johnwc commented 4 months ago

It installs and runs using yarn. It is just that we did not install yarn, we prefer the output and options of npm as that is what we are used to. Are you a member of this repo?

dionisisZyg commented 4 months ago

Hello again, @johnwc .

No, i am not a member of this repo. I am using the extension in order to speed up the development process.

Today it seems to pick up NPM as the package manager correctly! What i did:

image

johnwc commented 4 months ago

We never installed yarn.