毫克: 1.1.0
其他(例如 normalize.css、node.js、npm、bower、浏览器、操作系统)(如果适用):
“依赖关系”:{
“normalize.css”:“最新”
},
“开发依赖”:{
"autoprefixer": "^6.3.6",
"backstopjs": "^1.3.5",
"浏览器同步": "^2.13.0",
"node-sass": "^3.7.0",
"npm-run-all": "^2.1.1",
"onchange": "^2.4.0",
"postcss-cli": "^2.5.2",
"sass-lint": "^1.8.2"
}
Windows 10,节点 v6.5.0,npm 3.10.3
npm run build
构建成功。
以下错误:
postcss -u autoprefixer --no-map.inline --autoprefixer.browsers 'last 1 versions' -r dist/*.css
[system_path]\milligram\node_modules\minimatch\minimatch.js:108
throw new TypeError('需要全局模式字符串')
^
类型错误:需要全局模式字符串
在新的 Minimatch ([system_path]\milligram\node_modules\minimatch\minimatch.js:108:11)
在 setopts ([system_path]\milligram\node_modules\postcss-cli\node_modules\glob\common.js:112:20)
在新的 GlobSync ([system_path]\milligram\node_modules\postcss-cli\node_modules\glob\sync.js:38:3)
在 Function.globSync作为同步
在 [system_path]\milligram\node_modules\postcss-cli\node_modules\globby\index.js:55:35
在 Array.reduce(本机)
在 Function.module.exports.sync ([system_path]\milligram\node_modules\postcss-cli\node_modules\globby\index.js:54:19)
在对象。
在 Module._compile (module.js:556:32)
在 Object.Module._extensions..js (module.js:565:10)
嘿@luisaceituno
我只更新版本。 你能再试一次吗?
在版本1.2.0
和节点6.9.1
,npm 3.10.9
有同样的错误。
在全局安装 autoprefixer 后,它仍然存在上述错误。 和banner
有这个错误:
> [email protected] banner G:\Github\FinalProject\milligram
> for m in dist/*.css; do echo '/*!
* Milligram v1.2.0
* http://milligram.github.io
*
* Copyright (c) 2016 CJ Patoilo
* Licensed under the MIT license
*/
' | cat - $m > temp && mv temp $m; done
m was unexpected at this time.
.
.
.
嗨@mmdsharifi
所以 Milligram 使用 npm 脚本来构建系统。 您不需要安装任何全局依赖项。 您只需要安装最新版本的Node并运行npm start
或npm install
。
如果您需要其他任何东西,请告诉我们。
@luisaceituno @mmdsharifi我正在努力解决这个问题。 我添加了 AppVeyor 服务以确保在 Windows 环境中构建。 要关注,只需访问此链接:
https://ci.appveyor.com/project/cjpatoilo/milligram
@luisaceituno @mmdsharifi
我解决了auprefixer任务中单引号产生的问题。 现在任务横幅中有错误。 总之,这个问题是关于在 Windows 和 MacOS/Linux 环境中 shell 脚本命令的变化。 我创建了一个用 Node.js 编写的模块来解决这个问题,但我需要更多的空闲时间来处理它。
如果你能以任何方式提供帮助..这里是链接: https :
@luisaceituno @mmdsharifi感谢您报告此问题。 我只是扩展了节点的支持。 一切正常。 我会关闭这个问题,但我希望你在需要时保持联系。
Windows 环境: https :