NativeScript / NativeScript/nativescript-cli

Unexpected end of JSON input while parsing near '...":"^5.0.1"},"devDepen'

未关闭
#4,742 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。