凉亭畸形 [英] Bower Malformed
问题描述
我正在学习如何使用Bower。为了入门,我创建了一个基本的bower.json文件,其职责是获取jquery。我的bower.json文件如下所示:
I'm learning how to use Bower. In an effort to get started, I've created a basic bower.json file whose responsibilty is to get jquery. My bower.json file looks like this:
{
"name": "MyProject",
"version": "0.0.1",
"devDependencies": {
"jquery": "~2.1.0"
}
}
当我从bower.json文件所在的目录运行bower install时,出现以下错误:
When I run bower install from the directory where my bower.json file is located, I get the following error:
bower EMALFORMED Failed to read C:\Projects\MyProject\bower.json
我在做什么错?我一直在寻找语法上不正确的东西。但是,一切对我来说都是正确的。非常感谢您的帮助!
What am I doing wrong? I keep looking for something to be syntactically incorrect. However, everything looks correct to me. Thank you so much for your help!
推荐答案
由于您在Windows上,很有可能在BOM和/或另一个utf8 / utf16编码问题。
Since you are on windows, it's quite likely you are having issue with a BOM and/or another utf8/utf16 encoding issue.
使用不会执行愚蠢操作的文本编辑器再试一次(也许Sublime文字-我不太确定Windows上有什么好处。
Try again with a text editor that doesn't do stupid things (maybe Sublime Text - I'm not too sure what's good on windows).
这篇关于凉亭畸形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!