sass - Parcel build 命令在尝试编译时抛出错误
问题描述
当我运行“npm run dev”时,它就像一个魅力,但是当我启动“npm run dev”时,就会发生这种情况。我有包裹,sass 和 yeoman。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! parcel-sass-boilerplate@1.0.0 build: `parcel build src/index.html`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the parcel-sass-boilerplate@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nikok\AppData\Roaming\npm-cache\_logs\2021-09-28T07_20_11_855Z-debug.log
解决方案
像这样将--no-minify添加到脚本中:
"build": "parcel build src/index.html --no-minify"
推荐阅读
- asp.net-mvc - 在 ASP.NET Web 应用程序中使用应用程序的标识 (Azure AD) 调用 Microsoft Graph
- r - 用R计算欧几里得距离
- c# - Microsoft Sync Framework 唯一索引错误
- python - 如何修复 Keras ValueError:形状 (None, 3, 2) 和 (None, 2) 不兼容?
- google-cloud-platform - GCP Dataproc - 错误:“cluster.config”中的未知名称“optionalComponents”:找不到字段
- javascript - 如何在 iOS 中创建 WebGL 2 渲染器?
- node.js - 使用nodejs中的中间件将标头发送到客户端后无法设置标头
- javascript - 获取具体
- 使用 jquery 标记值
- flutter - 在谷歌地图颤动中设置标记
- c# - LINQ / C#从一个列表中删除多个其他列表中的所有项目