nativescript项目破坏构建错误

时间:2018-05-26 19:06:42

标签: nativescript

我测试了我的nativescript项目并且它有效,然后我对项目进行了一些更改,突然出现了问题,出现了一些构建错误,我在git reset之前转到了前一点,删除了所有未跟踪的{ {1}}文件包括package-lock.json文件,以便重新开始。我运行git clean -fdXtns installnpm install,令人惊讶的是该项目产生了构建错误!不是npm的包装点,以确保我们可以在项目的每个时间和任何地方构成相同的环境吗?

我还删除并安装了nativescript,我注意到npm产生了一些警告,有些哈希与npm没有匹配,我想我已经通过tns runnpm cache --force clean修复了,我不知道它是否与构建错误有关?

如何重置项目以便它再次工作? 任何帮助都将得到帮助。

我的gitignore文件:

npm cache verify

的package.json:

npm-debug.log
.DS_Store

*.js.map
vendor*.ts
**/*.js
!tools/*.js
hooks/
lib/
node_modules/
platforms/
tmp/
typings/
.idea
.cloud
/.project
.vscode

构建错误:

    {
      "description": "NativeScript Application",
      "license": "..",
      "readme": "NativeScript Application",
      "repository": "<fill-your-repository-here>",
      "nativescript": {
        "id": "org.nativescript.projectname",
        "tns-android": {
          "version": "4.0.1"
        }
      },
      "scripts": {
        "lint": "tslint \"app/**/*.ts\""
      },
      "dependencies": {
        "@angular/animations": "~5.2.0",
        "@angular/common": "~5.2.0",
        "@angular/compiler": "~5.2.0",
        "@angular/core": "~5.2.0",
        "@angular/forms": "~5.2.0",
        "@angular/http": "~5.2.0",
        "@angular/platform-browser": "~5.2.0",
        "@angular/platform-browser-dynamic": "~5.2.0",
        "@angular/router": "~5.2.0",
        "nativescript-angular": "~5.3.0",
        "nativescript-permissions": "^1.2.3",
        "nativescript-theme-core": "~1.0.4",
        "nativescript-ui-sidedrawer": "~4.0.0",
        "reflect-metadata": "~0.1.10",
        "rxjs": "~5.5.5",
        "tns-core-modules": "4.0.0",
        "zone.js": "~0.8.18"
      },
      "devDependencies": {
        "@angular/compiler-cli": "~5.2.0",
        "@ngtools/webpack": "~1.9.4",
        "babel-traverse": "6.4.5",
        "babel-types": "6.4.5",
        "babylon": "6.4.5",
        "clean-webpack-plugin": "~0.1.19",
        "codelyzer": "~4.0.2",
        "copy-webpack-plugin": "~4.3.0",
        "css-loader": "~0.28.7",
        "extract-text-webpack-plugin": "~3.0.2",
        "lazy": "1.0.11",
        "nativescript-dev-sass": "~1.5.0",
        "nativescript-dev-typescript": "~0.7.0",
        "nativescript-dev-webpack": "~0.10.0",
        "nativescript-worker-loader": "~0.8.1",
        "raw-loader": "~0.5.1",
        "resolve-url-loader": "~2.2.1",
        "sass-loader": "~6.0.6",
        "tslint": "~5.8.0",
        "typescript": "~2.7.2",
        "uglifyjs-webpack-plugin": "~1.1.6",
        "webpack": "~3.10.0",
        "webpack-bundle-analyzer": "^2.9.1",
        "webpack-sources": "~1.1.0"
      }
    }

0 个答案:

没有答案
相关问题