接收NPM错误:离子3项目中位置20938处的JSON中的意外字符串

前端之家收集整理的这篇文章主要介绍了接收NPM错误:离子3项目中位置20938处的JSON中的意外字符串前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
不确定错误在哪里. (*是举行私人项目信息的地方,即Facebook应用程序ID和应用程序名称)我已经收到此错误一段时间了,我无法弄清楚,有什么我想念的吗?
{
    "name": "****","version": "0.0.1","author": "Ionic Framework","homepage": "http://ionicframework.com/","private": true,"scripts": {
        "clean": "ionic-app-scripts clean","build": "ionic-app-scripts build","lint": "ionic-app-scripts lint","ionic:build": "ionic-app-scripts build","ionic:serve": "ionic-app-scripts serve"
    },"dependencies": {
        "@angular/common": "4.4.3","@angular/compiler": "4.4.3","@angular/compiler-cli": "4.4.3","@angular/core": "4.4.3","@angular/forms": "4.4.3","@angular/http": "4.4.3","@angular/platform-browser": "4.4.3","@angular/platform-browser-dynamic": "4.4.3","@firebase/webchannel-wrapper": "^0.2.1","@ionic-native/camera": "^4.3.0","@ionic-native/core": "^4.3.1","@ionic-native/facebook": "^4.2.1","@ionic-native/image-picker": "^4.3.1","@ionic-native/splash-screen": "4.3.1","@ionic-native/status-bar": "4.3.1","@ionic/storage": "2.0.1","angularfire2": "^5.0.0-rc.2","cordova-browser": "^4.1.0","cordova-ios": "^4.4.0","cordova-plugin-camera": "^2.4.1","cordova-plugin-compat": "^1.2.0","cordova-plugin-device": "^1.1.4","cordova-plugin-facebook4": "^1.9.1","cordova-plugin-firebase": "^0.1.24","cordova-plugin-splashscreen": "^4.0.3","cordova-plugin-statusbar": "^2.2.2","cordova-plugin-whitelist": "^1.3.1","firebase": "^4.5.0","ionic-angular": "3.7.1","ionic-plugin-keyboard": "^2.2.1","ionic-tags-input": "0.0.6","ionicons": "3.0.0","ng-tags-input": "^3.2.0","promise-polyfill": "^6.0.2","rxjs": "5.4.3","sw-toolBox": "3.6.0","zone.js": "0.8.18"
    },"devDependencies": {
        "@angular/cli": "^1.4.3","@ionic/app-scripts": "3.0.0","typescript": "2.5.3"
    },"description": "An Ionic project","cordova": {
        "plugins": {
            "cordova-plugin-facebook4": {
                "APP_ID": "***********","APP_NAME": "****"
            },"cordova-plugin-device": {},"cordova-plugin-splashscreen": {},"cordova-plugin-statusbar": {},"cordova-plugin-whitelist": {},"ionic-plugin-keyboard": {},"cordova-plugin-firebase": {},"cordova-plugin-camera": {}
        },"platforms": [
            "browser","ios"
        ]
    }
}

或者这可能是我的节点或NPM的错误?有一双新鲜的眼睛看看会很高兴

解决方法

运行命令’rm package-lock.json’,然后重新运行’npm install’,一切正常:)

猜你在找的JavaScript相关文章