Skip to content
Advertisement

can’t invoke yarn after installing with npm

I just got a upgraded my laptop and installed yarn via npm

and for some some reason when I try to invoke yarn --v it throws,

JavaScript

although, when i run yarn.cmd --v

it works fine?

is this an issue with path?

Advertisement

Answer

This might have to do something with powershell 5,

JavaScript

returns restricted

I fixed it by running this in powershell:

JavaScript

then pressed

JavaScript

and it works

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement