简体   繁体   English

Npm 运行构建/部署不起作用并抛出“编译错误”

[英]Npm run build/deploy does not works and throw "failed to compile errors"

I tried to run npm run deploy/ build but it doesn't work and throws this error in the terminal.我尝试运行 npm run deploy/build 但它不起作用并在终端中引发此错误。 I am a beginner to git and github and I want to upload my changes that I made in my latest commit to my github pages but it no matter how many time I tried, it always says fails to compile我是 git 和 github 的初学者,我想上传我在对 github 页面的最新提交中所做的更改,但无论我尝试了多少次编译,它总是失败,

the error message in terminal:终端中的错误消息:

Creating an optimized production build... Failed to compile.创建优化的生产版本...编译失败。

static/css/main.9391ac5d.css from Css Minimizer plugin Error: Unexpected '/'. static/css/main.9391ac5d.css 来自 Css 最小化插件错误:意外的“/”。 Escaping special characters with \ may help. Escaping 带有 \ 的特殊字符可能会有所帮助。

I think you have some extra characters which were added by mistake while commenting few things Check for any extra / or * in your css files我认为您在评论一些内容时错误地添加了一些额外的字符 检查 css 文件中是否有任何额外的 / 或 *

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM