Tag Archives: Error: No valid exports main found for ‘/Users/work/company_fc/a/node_modules/colorette'”

Error: No valid exports main found for ‘/Users/work/company_fc/a/node_modules/colorette'”

Error: No valid exports main found for ‘/Users/work/company_ fc/a/node_ modules/colorette

Prompt problem encountered while installing dependency

 

 

Cause analysis:

The node version may be incorrect

The default version of the current node is 13.3.0. Switch to version 12.14.1 and start normally.

 

Generally, for old projects, it is necessary to switch to the lower version of node

However, if you don’t want to uninstall the original high version and want to use the low version, NVM is required at this time

reference resources: https://blog.csdn.net/weixin_ 44954172/article/details/104260612

If NVM is installed, simply

 nvm use 12.14.1