NativeScript / NativeScript/nativescript-cli
Unexpected end of JSON input while parsing near '...":"^5.0.1"},"devDepen'
未关闭
还没有人认领这个 Issue。
question
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Environment
- npm : 6.4.1
- node: 10.15.0
- CLI: 5.4.1
While creating new app with following command
tns create MyApp --ng
It will give me following error
npm ERR! Unexpected end of JSON input while parsing near '...":"^5.0.1"},"devDepen'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Vala\AppData\Roaming\npm-cache_logs\2019-06-19T02_29_32_896Z-debug.log
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用报告中的 npm、Node 和 CLI 版本复现 tns create MyApp --ng,然后检查 C:\Users\Vala\AppData\Roaming\npm-cache\_logs\2019-06-19T02_29_32_896Z-debug.log 中的 npm 调试日志。完成的标准是确定究竟是应用创建过程还是 npm 缓存生成了被截断的 JSON,并建立一个可复现的修复方案。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js
- 领域
- cli, mobile-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100