I’ve got an issue when try running server for vue project
this is the issue
ERROR Error: No valid exports main found for ‘
PROJECT PATH
node_modulescolorette’ Error: No valid exports main found for ‘PROJECT PATH
node_modulescolorette’ at resolveExportsTarget (internal/modules/cjs/loader.js:622:9) at applyExports (internal/modules/cjs/loader.js:499:14) at resolveExports (internal/modules/cjs/loader.js:548:12) at Function.Module._findPath (internal/modules/cjs/loader.js:654:22) at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27) at Function.Module._load (internal/modules/cjs/loader.js:859:27) at Module.require (internal/modules/cjs/loader.js:1028:19) at require (internal/modules/cjs/helpers.js:72:18) at Object. (C:UsersAlaaMohammedPhpstormProjectsvue-2node_modulesautoprefixerlibautoprefixer.js:5:17) at Module._compile (internal/modules/cjs/loader.js:1139:30) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vue-2@0.1.0 serve:vue-cli-service serve
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-2@0.1.0 serve script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I want some to response to my problem
Advertisement
Answer
try to reinstall the colerette plugin version 1.2.0 manually
npm i colorette@1.2.0