gpt4 book ai didi

javascript - 在 vue 项目中运行 npm run serve 时出现问题

转载 作者:行者123 更新时间:2023-12-03 06:37:18 25 4
gpt4 key购买 nike

尝试为 vue 项目运行服务器时遇到问题
这是问题

ERROR Error: No valid exports main found for' PROJECT PATH\node_modules\colorette'Error: No valid exports main found for'PROJECT PATH\node_modules\colorette'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:\Users\AlaaMohammed\PhpstormProjects\vue-2\node_modules\autoprefixer\lib\autoprefixer.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 nota problem with npm. There is likely additional logging output above.


我想要一些人来回答我的问题

最佳答案

尝试手动重新安装 colerette 插件版本 1.2.0

npm i colorette@1.2.0

关于javascript - 在 vue 项目中运行 npm run serve 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62759274/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com