接收package.json的解析错误.验证为有效的json
Receive parse error for package.json. Validates as valid json
我正试图创建我的第一个yeoman生成器,当我运行yo创建我的项目时,我遇到了以下错误。
npm ERR! install Couldn't read dependencies
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm v2.1.14
npm ERR! file /Users/derek/Development/personal_projects/stylus-generator/work/package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token }
npm ERR! File: /Users/derek/Development/personal_projects/stylus-generator/work/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR! /Users/derek/Development/personal_projects/stylus-generator/work/npm-debug.log
我已经使用jsonint验证了package.json文件。我还执行了npm缓存清理。package.json文件可以在这里找到:https://github.com/dereksnow/generator-simple-stylus/blob/master/package.json
有什么建议吗?
我在app/templates/_package.json文件中的最后一个依赖项后面有一个逗号。我在根目录中查看了package.json,它没有任何问题。哎哟!
相关文章:
- 验证我的代码json
- Node+Json验证键嵌套数组
- 获取json结果的身份验证问题
- 将电子邮件验证正则表达式字符串存储在JSON中
- json数据验证,使用angular Js和javascript进行输入值验证
- 接收package.json的解析错误.验证为有效的json
- AJAX表单,通过JSON响应进行php验证
- 使用 json 后端对 jquery-mobile 应用程序进行身份验证(制作 API)
- 验证后 JSON 数据服务器端
- jQuery,CORS,JSON(不带填充)和身份验证问题
- 在 php 中验证 json 架构
- 在另一个函数调用之前验证 JSON 响应
- 验证 PHP 中的字符串以进行 JSON 输出
- express.js - 最佳 POST JSON 架构验证器
- 如何向需要身份验证的 API 发出 Javascript JSON 请求
- 使用 jquery 将 JSON 发布到控制器,并使用内置验证
- chrome打包应用程序中的JSON架构验证
- 从头开始在NodeJ中编写JSON验证
- 使用AJAX和JSON验证注册表
- 如果JSON不正确,如何验证JSON字符串并返回错误