Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rollup plugins not recognizing installed rollup

Tags:

rollupjs

I installed rollup globally:

npm install -g rollup

Then, I tried to install a plugin, locally:

C:\wwwroot\speech-to-text [master +9 ~0 -0 !]> npm install rollup-plugin-json
npm WARN [email protected] requires a peer of rollup@>=0.60.0 <1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of rollup@>=0.56.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.

+ [email protected]
updated 1 package in 1.895s

It gives warnings that rollup isn't installed. Does anyone know why? Here is me checking the version, in case you doubt that rollup was actually installed:

C:\wwwroot\speech-to-text [master +9 ~0 -0 !]> rollup -v
rollup v0.66.2
like image 955
John Deighan Avatar asked Jan 27 '26 17:01

John Deighan


1 Answers

I believe the problem is that you have installed rollup in the global context.

You may try to install rollup this way

npm install rollup --save-dev
like image 71
sunsoft Avatar answered Jan 29 '26 13:01

sunsoft



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!