Closed drafenous closed 1 year ago
Looks like this is an issue with https://github.com/pnpm/pnpm/issues/4278#issuecomment-1490433166.
For now the only solution is to remove the preinstall
script from package.json
:
https://github.com/orestbida/cookieconsent/blob/4a41bf263d267a836215df2f9e367cb06ff28662/package.json#L13
Looks like this is an issue with pnpm/pnpm#4278 (comment).
For now the only solution is to remove the
preinstall
script frompackage.json
:
Thanks! you're amazing! :) It's working fine now.
Expected Behavior
When I try to install using:
yarn add vanilla-cookieconsent@next
just install the package.Current Behavior
When i run
yarn add vanilla-cookieconsent@next
for angular, i got an error:I dont have how to install pnpm, because my project require an old version of node: v12.22.1, and pnpm requires v16.14 when i run
npm i -g pnpm
i tried to use yarn, likeyarn add -g pnpm
, because my project uses yarn by default, but doesnt work.I tried to use a old version (2.8.8) of the plugin, but i got this error:
Property 'run' does not exist on type 'typeof import("/home/rodrigo/Projetos/spartacus/node_modules/vanilla-cookieconsent/types/types")'.ts(2339)
Steps to reproduce
Use Yarn. Use and old version of node, like v12.22.1 Try to run
yarn add vanilla-cookieconsent@next
Proposed fix or additional info.
Angular version: 10.2.4
Version
@next
On which browser do you see the issue?
No response