小编use*_*585的帖子

错误TS5014:无法解析文件'':在位置0的JSON中出现意外的令牌u.终端进程以退出代码终止:1

我收到此错误.

error TS5014: Failed to parse file '/Users/Documents/tsconfig.json/tsconfig.json': Unexpected token u in JSON at position 0.
The terminal process terminated with exit code: 1
Run Code Online (Sandbox Code Playgroud)

我的系统设置:

  1. Visual Studio代码版本1.14.1
  2. Angular 2
  3. 节点版本v8.0.0
  4. tsc版本2.4.1

package.json如下

{
  "name": "angular-quickstart",
  "version": "1.0.0",
  "description": "QuickStart package.json from the documentation, supplemented with testing support",
  "scripts": {
    "start": "concurrently \"npm run tsc:w\" \"npm run lite\" ",
    "e2e": "tsc && concurrently \"http-server -s\" \"protractor protractor.config.js\" --kill-others --success first",
    "lint": "tslint ./app/**/*.ts -t verbose",
    "lite": "lite-server",
    "pree2e": "webdriver-manager update",
    "test": …
Run Code Online (Sandbox Code Playgroud)

node.js npm package.json

10
推荐指数
1
解决办法
1146
查看次数

标签 统计

node.js ×1

npm ×1

package.json ×1