1

I want to use less in react18, before that I installed and configured "@craco/craco", but when executing "npm i craco-less -D", the console prompts an error, I searched a lot without finding it, looking forward to your reply!

Console error reporting: enter image description here
package.json enter image description here
craco.config.js enter image description here

xu Han
  • 29
  • 4

1 Answers1

1

Try to install it using the --force flag, like:

npm install craco-less --save-dev --force

Or for short:

npm i craco-less -D -f
Kevin M. Mansour
  • 2,915
  • 6
  • 18
  • 35