Duplicate modules in package-lock.json when using npm? - node.js

I have noticed on node 15 and npm 7, when I switch from node 14 - duplicate entries for the same package. One is apollo-server-core which is fine. And the other is node_modules/apollo-server-core which was added when I run npm install with npm 7. Also notice that for every dependency I have, another entry with prefix node_modules/ was created. Was this purposefully added with npm 7 or is it a bug?
For example:
created with when used npm 7
"node_modules/apollo-server-core": {
"version": "2.19.0",
"resolved": "https://registry.npmjs.org/apollo-server-core/-/apollo-server-core-2.19.0.tgz",
"integrity": "sha512-2aMKUVPyNbomJQaG2tkpfqvp1Tfgxgkdr7nX5zHudYNSzsPrHw+CcYlCbIVFFI/mTZsjoK9czNq1qerFRxZbJw==",
"dependencies": {
"#apollographql/apollo-tools": "^0.4.3",
"#apollographql/graphql-playground-html": "1.6.26",
"#types/graphql-upload": "^8.0.0",
"#types/ws": "^7.0.0",
"apollo-cache-control": "^0.11.4",
"apollo-datasource": "^0.7.2",
"apollo-graphql": "^0.6.0",
"apollo-reporting-protobuf": "^0.6.1",
"apollo-server-caching": "^0.5.2",
"apollo-server-env": "^2.4.5",
"apollo-server-errors": "^2.4.2",
"apollo-server-plugin-base": "^0.10.2",
"apollo-server-types": "^0.6.1",
"apollo-tracing": "^0.12.0",
"async-retry": "^1.2.1",
"fast-json-stable-stringify": "^2.0.0",
"graphql-extensions": "^0.12.6",
"graphql-tag": "^2.9.2",
"graphql-tools": "^4.0.0",
"graphql-upload": "^8.0.2",
"loglevel": "^1.6.7",
"lru-cache": "^5.0.0",
"sha.js": "^2.4.11",
"subscriptions-transport-ws": "^0.9.11",
"uuid": "^8.0.0",
"ws": "^6.0.0"
},
"engines": {
"node": ">=6"
}
},
and
the usual entry
"apollo-server-core": {
"version": "2.19.0",
"resolved": "https://registry.npmjs.org/apollo-server-core/-/apollo-server-core-2.19.0.tgz",
"integrity": "sha512-2aMKUVPyNbomJQaG2tkpfqvp1Tfgxgkdr7nX5zHudYNSzsPrHw+CcYlCbIVFFI/mTZsjoK9czNq1qerFRxZbJw==",
"requires": {
"#apollographql/apollo-tools": "^0.4.3",
"#apollographql/graphql-playground-html": "1.6.26",
"#types/graphql-upload": "^8.0.0",
"#types/ws": "^7.0.0",
"apollo-cache-control": "^0.11.4",
"apollo-datasource": "^0.7.2",
"apollo-graphql": "^0.6.0",
"apollo-reporting-protobuf": "^0.6.1",
"apollo-server-caching": "^0.5.2",
"apollo-server-env": "^2.4.5",
"apollo-server-errors": "^2.4.2",
"apollo-server-plugin-base": "^0.10.2",
"apollo-server-types": "^0.6.1",
"apollo-tracing": "^0.12.0",
"async-retry": "^1.2.1",
"fast-json-stable-stringify": "^2.0.0",
"graphql-extensions": "^0.12.6",
"graphql-tag": "^2.9.2",
"graphql-tools": "^4.0.0",
"graphql-upload": "^8.0.2",
"loglevel": "^1.6.7",
"lru-cache": "^5.0.0",
"sha.js": "^2.4.11",
"subscriptions-transport-ws": "^0.9.11",
"uuid": "^8.0.0",
"ws": "^6.0.0"
},
"dependencies": {
"apollo-datasource": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/apollo-datasource/-/apollo-datasource-0.7.2.tgz",
"integrity": "sha512-ibnW+s4BMp4K2AgzLEtvzkjg7dJgCaw9M5b5N0YKNmeRZRnl/I/qBTQae648FsRKgMwTbRQIvBhQ0URUFAqFOw==",
"requires": {
"apollo-server-caching": "^0.5.2",
"apollo-server-env": "^2.4.5"
}
},
"apollo-server-caching": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-0.5.2.tgz",
"integrity": "sha512-HUcP3TlgRsuGgeTOn8QMbkdx0hLPXyEJehZIPrcof0ATz7j7aTPA4at7gaiFHCo8gk07DaWYGB3PFgjboXRcWQ==",
"requires": {
"lru-cache": "^5.0.0"
}
},
"fs-capacitor": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/fs-capacitor/-/fs-capacitor-6.2.0.tgz",
"integrity": "sha512-nKcE1UduoSKX27NSZlg879LdQc94OtbOsEmKMN2MBNudXREvijRKx2GEBsTMTfws+BrbkJoEuynbGSVRSpauvw=="
},
"graphql-upload": {
"version": "https://registry.npmjs.org/graphql-upload/-/graphql-upload-11.0.0.tgz",
"integrity": "sha512-zsrDtu5gCbQFDWsNa5bMB4nf1LpKX9KDgh+f8oL1288ijV4RxeckhVozAjqjXAfRpxOHD1xOESsh6zq8SjdgjA==",
"requires": {
"busboy": "^0.3.1",
"fs-capacitor": "^6.1.0",
"http-errors": "^1.7.3",
"isobject": "^4.0.0",
"object-path": "^0.11.4"
}
},
"http-errors": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.0.tgz",
"integrity": "sha512-4I8r0C5JDhT5VkvI47QktDW75rNlGVsUf/8hzjCC/wkWI/jdTRmBb9aI7erSG82r1bjKY3F6k28WnsVxB1C73A==",
"requires": {
"depd": "~1.1.2",
"inherits": "2.0.4",
"setprototypeof": "1.2.0",
"statuses": ">= 1.5.0 < 2",
"toidentifier": "1.0.0"
}
},
"setprototypeof": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
},
"uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
},
"ws": {
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz",
"integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==",
"requires": {
"async-limiter": "~1.0.0"
}
}
}
}

npm 7 brought changes to the lockfile format to improve build consistency across machines.
The new entries your seeing (prefixed with "node_modules/") are in a new key "packages" that did not exist in earlier versions of npm. They are duplicated in the old key "dependencies" which is kept around for backward compatibility to old npm clients.

What #triskweline said.
I resolved the issue by deleting package-lock.json and then running the command npm i --package-lock-only. This will determine versions of packages to install using package.json, and then create a package-lock.json file with its resolved versions if none exists.
P.S. It doesn't install any package.

Related

Azure DevOps npm build contains files that don't exist locally

I'm getting these errors during ng build --environment=sit --aot -ec --output-hashing=media in Azure DevOps:
However, when I run the exact same command locally, I get no errors:
I also noticed the files causing the errors do not exist for me locally.
I'm using node 10.24.1 and npm 6.4.12 (same as DevOps).
Why do these files not exist for me locally and how can I remove them or fix them in Azure DevOps?
Here are the dependencies in my package.json:
"dependencies": {
"#angular/animations": "4.4.6",
"#angular/common": "4.4.6",
"#angular/compiler": "4.4.6",
"#angular/core": "4.4.6",
"#angular/forms": "4.4.6",
"#angular/http": "4.4.6",
"#angular/platform-browser": "4.4.6",
"#angular/platform-browser-dynamic": "4.4.6",
"#angular/platform-server": "4.4.6",
"#angular/router": "4.4.6",
"#ngrx/core": "1.2.0",
"#ngrx/store": "2.2.2",
"#ngrx/store-devtools": "3.2.4",
"#progress/kendo-angular-buttons": "4.3.3",
"#progress/kendo-angular-dateinputs": "1.4.5",
"#progress/kendo-angular-dropdowns": "3.4.2",
"#progress/kendo-angular-excel-export": "2.3.0",
"#progress/kendo-angular-grid": "3.12.1",
"#progress/kendo-angular-inputs": "4.0.0",
"#progress/kendo-angular-intl": "1.6.1",
"#progress/kendo-angular-l10n": "1.3.0",
"#progress/kendo-data-query": "1.5.0",
"#progress/kendo-drawing": "1.5.8",
"#progress/kendo-theme-default": "2.47.0",
"angular-oauth2-oidc": "1.0.20",
"angular2-uuid": "1.1.1",
"angulartics2": "2.5.0",
"core-js": "2.5.1",
"css-element-queries": "0.4.0",
"font-awesome": "4.7.0",
"ifcom": "1.0.30",
"intl": "1.2.5",
"jquery": "3.2.1",
"jwt-decode": "2.2.0",
"lodash": "4.17.5",
"moment": "2.18.1",
"ngrx-store-localstorage": "0.1.8",
"ngx-bootstrap": "2.0.0-beta.8",
"ngx-pagination": "3.0.3",
"pdfjs-dist": "2.0.104",
"rxjs": "5.5.2",
"text-mask-addons": "3.7.1",
"text-mask-core": "5.0.1",
"throttle-debounce": "1.0.1",
"zone.js": "0.8.18"
},
"devDependencies": {
"#angular/cli": "1.4.6",
"#angular/compiler-cli": "4.4.6",
"#types/jasmine": "2.8.2",
"#types/jwt-decode": "2.2.1",
"#types/lodash": "4.14.102",
"#types/node": "8.0.53",
"angular2-jwt": "0.2.3",
"bootstrap-sass": "3.3.7",
"browser-sync": "2.26.3",
"codelyzer": "4.0.1",
"enhanced-resolve": "3.3.0",
"jasmine-core": "2.8.0",
"jasmine-spec-reporter": "4.2.1",
"karma": "1.7.1",
"karma-chrome-launcher": "2.2.0",
"karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "1.3.0",
"karma-jasmine": "1.1.0",
"karma-jasmine-html-reporter": "0.2.2",
"karma-remap-istanbul": "0.6.0",
"karma-spec-reporter": "0.0.31",
"karma-teamcity-reporter": "1.0.1",
"lite-server": "2.3.0",
"pre-push": "0.1.1",
"protractor": "5.4.2",
"sass-lint": "1.12.1",
"ts-node": "3.3.0",
"tslint": "5.8.0",
"tslint-sonarts": "1.6.0",
"typescript": "2.3.4",
"worker-loader": "1.1.0"
},
and here are the #progress dependencies listed in package-lock.json:
"#progress/jszip-esm": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/#progress/jszip-esm/-/jszip-esm-1.0.3.tgz",
"integrity": "sha512-qu5qeIlUsJX0Z2oi3Aax3gvfjKrrtVzQ2LIEhmw2CVWffZ0JvtifiomyJOc0ZFk7oEyEyrVvab97bqKkNCKvfQ==",
"requires": {
"#progress/pako-esm": "^1.0.1"
}
},
"#progress/kendo-angular-buttons": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-buttons/-/kendo-angular-buttons-4.3.3.tgz",
"integrity": "sha512-roJaR/k3EzbynUdFQzkkOyDvD+QKrn5Bc+cG4xNHuEp1S9VVicJDZ5VEsx9JU/zn/cZkr7aUpf0T6Wvtx/7JBg==",
"requires": {
"#progress/kendo-angular-popup": "^2.0.0",
"#progress/kendo-popup-common": "^1.2.3",
"#telerik/kendo-draggable": "^1.5.1",
"tslib": "^1.7.0"
}
},
"#progress/kendo-angular-dateinputs": {
"version": "1.4.5",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-dateinputs/-/kendo-angular-dateinputs-1.4.5.tgz",
"integrity": "sha512-DSkW2R1zpfwqTRX0FXPco4oN6BjRo9IAIGKD/fkKyKLp7mUuC/8kJYddQvGiyovDEDyOY0mAqEAmZtGtyF6G6A==",
"requires": {
"#progress/kendo-angular-popup": "^1.2.0",
"#progress/kendo-date-math": "^1.1.0",
"tslib": "^1.7.0"
},
"dependencies": {
"#progress/kendo-angular-popup": {
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-popup/-/kendo-angular-popup-1.3.4.tgz",
"integrity": "sha512-IC6Rf71qEzQNjxWgtBSlHhMo00rTBnLRlR/p7scsq6LvswgySX5OcvkdrorDJNnFSmkDxtaeTRTK9Elynikrxg==",
"requires": {
"#progress/kendo-popup-common": "^1.2.3",
"tslib": "^1.7.0"
}
}
}
},
"#progress/kendo-angular-dropdowns": {
"version": "3.4.2",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-dropdowns/-/kendo-angular-dropdowns-3.4.2.tgz",
"integrity": "sha512-E11rQ27ANNGHPRaxZsJCvO+IEehGIE0dTOXPtCIdNFlWZ6bO57fWeVMfQLvxMplOGNTvNWQRL+qNxwECBQ68BA==",
"requires": {
"#progress/kendo-angular-popup": "^2.0.0",
"#progress/kendo-angular-resize-sensor": "^3.1.2",
"#progress/kendo-schematics": "^0.2.0",
"tslib": "^1.7.0"
}
},
"#progress/kendo-angular-excel-export": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-excel-export/-/kendo-angular-excel-export-2.3.0.tgz",
"integrity": "sha512-5EKYv8DtZaWhaYoTdGNNasJqwsCuUIHqXmWnnEXxPmKm0mZg3aJk+XFonfeCinx2RzVmxGQb9URH1Q772n2Xbg==",
"requires": {
"#progress/kendo-file-saver": "^1.0.0",
"#progress/kendo-ooxml": "^1.2.0",
"#progress/kendo-schematics": "^0.2.0",
"tslib": "^1.7.0"
}
},
"#progress/kendo-angular-grid": {
"version": "3.12.1",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-grid/-/kendo-angular-grid-3.12.1.tgz",
"integrity": "sha512-4pJBO9EmXuxcRoQbkyyqL9S8CyDnnb3fo/TSZ6eVfpMs5RWOhQa5etB2uRgiIwZ/0qiacgQe3FXm1Tsyajin9Q==",
"requires": {
"#progress/kendo-angular-pdf-export": "^1.0.0",
"#progress/kendo-angular-resize-sensor": "^3.1.2",
"#progress/kendo-file-saver": "^1.0.0",
"#progress/kendo-schematics": "^0.2.1",
"#telerik/kendo-draggable": "^1.9.0",
"tslib": "^1.7.0"
}
},
"#progress/kendo-angular-inputs": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-inputs/-/kendo-angular-inputs-4.0.0.tgz",
"integrity": "sha512-4mUaT8tzNSVgFDQ/9njuKrGoziws/Q+ZJp9UOmRxEXGEOvR6iJ0b/16A/z/JOqKMcTQLHyYleh5dqtC5nzahPw==",
"requires": {
"#progress/kendo-angular-resize-sensor": "^3.1.2",
"#progress/kendo-common": "^0.1.1",
"#progress/kendo-schematics": "^0.2.0",
"#telerik/kendo-draggable": "^1.5.1",
"#telerik/kendo-inputs-common": "^2.2.2",
"tslib": "^1.7.0"
}
},
"#progress/kendo-angular-intl": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-intl/-/kendo-angular-intl-1.6.1.tgz",
"integrity": "sha512-s5p4awEM8hBrmqYFL5O/NLJRbUTaoowzdKVWGNSHHoYSJhbWfCDIEKf+u46EYjDzxu5w0HnijUW+2fqvmRw4YA==",
"requires": {
"#telerik/kendo-intl": "^1.3.0",
"tslib": "^1.7.0"
}
},
"#progress/kendo-angular-l10n": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-l10n/-/kendo-angular-l10n-1.3.0.tgz",
"integrity": "sha512-IoHUXqV+taRx2Bo2qcisBlvXI2IX72Z+69gx8z++VHkG8sccxG7AnuZ7zB/uY31VNhZUh7ZvRbuXx08zFxg8bg==",
"requires": {
"tslib": "^1.7.0"
}
},
"#progress/kendo-angular-pdf-export": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-pdf-export/-/kendo-angular-pdf-export-1.3.1.tgz",
"integrity": "sha512-4MbPZItSejzQkbijTzghblTtA6IEJfDuvhy1vJ7IYYRx+6TS6Day+KQODCI30RkCJhApS1j2zX+qfMmlMbPC7A==",
"requires": {
"#progress/kendo-file-saver": "^1.0.1",
"tslib": "^1.7.0"
}
},
"#progress/kendo-angular-popup": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-popup/-/kendo-angular-popup-2.6.0.tgz",
"integrity": "sha512-uuewIOhDtE+CaCfVKKR31KkEj/pctzZmbnaIukXu/rnNF+n7ttkwx9/VZFiyuMLbGC1JgiTDXLmY6LavgtdCXQ==",
"requires": {
"#progress/kendo-popup-common": "^1.7.0",
"#progress/kendo-schematics": "^0.2.5",
"tslib": "^1.7.0"
}
},
"#progress/kendo-angular-resize-sensor": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/#progress/kendo-angular-resize-sensor/-/kendo-angular-resize-sensor-3.2.0.tgz",
"integrity": "sha512-waI9u85A7Qgoa0uOZLoK9azNJAY+p57ua6lV/kITClsIGWGtMU+nxOk87rB2FteB1A7WiAC76xxYgY/fDVAKiA==",
"requires": {
"tslib": "^1.7.0"
}
},
"#progress/kendo-common": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/#progress/kendo-common/-/kendo-common-0.1.1.tgz",
"integrity": "sha512-ekEjcFsL3eBHWjh+cO+I/d2RVN7P2pDBI903jmp/dj0ojV3eu+V0u/AYWmvrNEqjeax4sx+qhSnO5iJNB391iQ==",
"requires": {
"tslib": "^1.7.0"
}
},
"#progress/kendo-data-query": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/#progress/kendo-data-query/-/kendo-data-query-1.5.0.tgz",
"integrity": "sha512-/uEE+5FUjQ/NGnGPZSr+7lLHN/5QAf9E/tWjLyVuNM/UyLfc9Q8QlLQmEL16ML8FiE0JssgIwbnOtkrSUO6O7Q==",
"requires": {
"tslib": "^1.7.0"
}
},
"#progress/kendo-date-math": {
"version": "1.5.4",
"resolved": "https://registry.npmjs.org/#progress/kendo-date-math/-/kendo-date-math-1.5.4.tgz",
"integrity": "sha512-Kfg5VSCaDsogW/3h1d/feYDRV7bZki1fvDFX+KkDbi4CE+5Wn0RNZHck6VuqAPWh1x4rjVkBVJHwF2d6H02JyA==",
"requires": {
"tslib": "^1.7.0"
}
},
"#progress/kendo-drawing": {
"version": "1.5.8",
"resolved": "https://registry.npmjs.org/#progress/kendo-drawing/-/kendo-drawing-1.5.8.tgz",
"integrity": "sha512-eM+8jpH2sR6A7P3DxsdM4hhN+PUraoyVvTIotF9TWdWNnTGejEGgSw5wNGCyWMvxf5Q+9qpBI/rj5djztsiIIw==",
"requires": {
"pako": "^1.0.5"
}
},
"#progress/kendo-file-saver": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/#progress/kendo-file-saver/-/kendo-file-saver-1.1.0.tgz",
"integrity": "sha512-26iPl67d0izUlzU6p98QM5f/spOK3QCdmSJrEzGakw1Yp0qyFmp2V9uKeswfWgX0NhKmJApWjlAxxrtRvYjHYA=="
},
"#progress/kendo-ooxml": {
"version": "1.6.3",
"resolved": "https://registry.npmjs.org/#progress/kendo-ooxml/-/kendo-ooxml-1.6.3.tgz",
"integrity": "sha512-Rgs0mwNQqxeAow2RFET/tgCvgsl9VlD8lHePuMbUX+o0hdZLaAaSjEatHZPw8zLrqy7ToTa4vi+1wdnsIdMGog==",
"requires": {
"#progress/jszip-esm": "^1.0.3",
"#progress/pako-esm": "^1.0.1"
}
},
"#progress/kendo-popup-common": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/#progress/kendo-popup-common/-/kendo-popup-common-1.8.0.tgz",
"integrity": "sha512-/cu0nV+3tHKPEE/bUbJTJHv6t8BMYpwI3uVOYENASYy+ZK1dlOfuRhdpSGH85glAH6NMtr/5pYOPojuXFFz/8A=="
},
"#progress/kendo-schematics": {
"version": "0.2.5",
"resolved": "https://registry.npmjs.org/#progress/kendo-schematics/-/kendo-schematics-0.2.5.tgz",
"integrity": "sha512-F9ZXPhDoHGQ5MIUTGn7NkEgX5RV6eBfLVtv0yOCKxZpTF6VkYWAnKFYhQFCFgHJsDGPMZtcT2hB1MHntIYIipA=="
},
"#progress/kendo-theme-default": {
"version": "2.47.0",
"resolved": "https://registry.npmjs.org/#progress/kendo-theme-default/-/kendo-theme-default-2.47.0.tgz",
"integrity": "sha1-uJlWHDerCTOxzmPXl2skYWJ2Nrc="
},
"#progress/pako-esm": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/#progress/pako-esm/-/pako-esm-1.0.1.tgz",
"integrity": "sha512-O4A3b1EuE9Xe1pC3Xz9Tcn1M/CYrL71f4y/5TXeytOVTkmkzBgYW97fYP2f+54H0e0erWRaqV/kUUB/a8Uxfbw=="
},
I managed to fix this by committing package-lock.json (it was untracked).

Error LessError: Cannot find module, because of npm install(update), package module Dependencies update

Summarize
with clone a git repo, npm install to install modules, and then ```npm run''' this demo with error like this
Error occurred compiling file D:/git/www_front/src/pages/Version/index.less
Error LessError: Cannot find module '#/utils/utils.less' from
Describe
with try some times , find this module's antd-pro-theme-webpack-plugin requires antd-theme-generator was update, may i get an answer to resolve this bug.
may i know , how do you control package.joso dependense version, with ^ , # or just hard it?
this is part of package.json and package-lock.josn file
file
index.less
#import '~antd/lib/style/themes/default.less';
#import '~#/utils/utils.less';
package.json:
"devDependencies": {
"#types/react": "^16.4.11",
"#types/react-dom": "^16.0.6",
"antd-pro-merge-less": "^0.0.9",
"antd-pro-theme-webpack-plugin": "^1.1.8",
"babel-eslint": "^9.0.0",
"cross-env": "^5.1.1",
"cross-port-killer": "^1.0.1",
}
package-lock.json with bug
"antd-pro-theme-webpack-plugin": {
"version": "1.1.8",
"resolved": "https://registry.npm.taobao.org/antd-pro-theme-webpack-plugin/download/antd-pro-theme-webpack-plugin-1.1.8.tgz",
"integrity": "sha1-iLyjkioefvIdLVfaqOLBmIYQ+dw=",
"dev": true,
"requires": {
"antd-theme-generator": "^1.1.3",
"less": "^2.7.2",
"less-bundle-promise": "1.0.4",
"postcss": "^6.0.21"
}
},
"antd-theme-generator": {
"version": "1.2.4",
"resolved": "https://registry.npm.taobao.org/antd-theme-generator/download/antd-theme-generator-1.2.4.tgz",
"integrity": "sha1-pro7Mq10TrpJEcJqRM58y8NpVBU=",
"dev": true,
"requires": {
"glob": "^7.1.3",
"hash.js": "^1.1.5",
"less": "^3.9.0",
"less-plugin-npm-import": "^2.1.0",
"postcss": "^6.0.21",
"strip-css-comments": "^4.1.0"
},
"dependencies": {
"less": {
"version": "3.11.3",
"resolved": "https://registry.npm.taobao.org/less/download/less-3.11.3.tgz",
"integrity": "sha1-LYU5VPz+AWmor4aWILyqFlY9zBw=",
"dev": true,
"requires": {
"clone": "^2.1.2",
"errno": "^0.1.1",
"graceful-fs": "^4.1.2",
"image-size": "~0.5.0",
"make-dir": "^2.1.0",
"mime": "^1.4.1",
"promise": "^7.1.1",
"request": "^2.83.0",
"source-map": "~0.6.0",
"tslib": "^1.10.0"
}
},
"mime": {
"version": "1.6.0",
"resolved": "https://registry.npm.taobao.org/mime/download/mime-1.6.0.tgz",
"integrity": "sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE=",
"dev": true,
"optional": true
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1567937985360&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true,
"optional": true
}
}
},
package-lock.json with ok verson:
"antd-pro-theme-webpack-plugin": {
"version": "1.1.8",
"resolved": "https://registry.npm.taobao.org/antd-pro-theme-webpack-plugin/download/antd-pro-theme-webpack-plugin-1.1.8.tgz",
"integrity": "sha1-iLyjkioefvIdLVfaqOLBmIYQ+dw=",
"dev": true,
"requires": {
"antd-theme-generator": "^1.1.3",
"less": "^2.7.2",
"less-bundle-promise": "1.0.4",
"postcss": "^6.0.21"
}
},
"antd-theme-generator": {
"version": "1.1.9",
"resolved": "https://registry.npm.taobao.org/antd-theme-generator/download/antd-theme-generator-1.1.9.tgz",
"integrity": "sha1-dfc6VvAi2o9zMWrZ0dCKwvYoFng=",
"dev": true,
"requires": {
"glob": "^7.1.3",
"hash.js": "^1.1.5",
"less": "^3.9.0",
"less-bundle-promise": "1.0.7",
"less-plugin-npm-import": "^2.1.0",
"postcss": "^6.0.21",
"postcss-colors-only": "0.0.3"
},
"dependencies": {
"less": {
"version": "3.11.1",
"resolved": "https://registry.npm.taobao.org/less/download/less-3.11.1.tgz?cache=0&sync_timestamp=1581428110523&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fless%2Fdownload%2Fless-3.11.1.tgz",
"integrity": "sha1-xr8I454CQE/mswej3/+v3FW9NuI=",
"dev": true,
"requires": {
"clone": "^2.1.2",
"errno": "^0.1.1",
"graceful-fs": "^4.1.2",
"image-size": "~0.5.0",
"mime": "^1.4.1",
"mkdirp": "^0.5.0",
"promise": "^7.1.1",
"request": "^2.83.0",
"source-map": "~0.6.0",
"tslib": "^1.10.0"
}
},
"less-bundle-promise": {
"version": "1.0.7",
"resolved": "https://registry.npm.taobao.org/less-bundle-promise/download/less-bundle-promise-1.0.7.tgz",
"integrity": "sha1-GY15kaxPXzx4YvrBB0x7msp7nLI=",
"dev": true
},
"mime": {
"version": "1.6.0",
"resolved": "https://registry.npm.taobao.org/mime/download/mime-1.6.0.tgz",
"integrity": "sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE=",
"dev": true,
"optional": true
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true,
"optional": true
}
}
},
I think you have usenpm install outside of the project. Make sure you are on the inside of your project, then use npm install it should work.

How to fix DeprecationWarning: Buffer()

I am building a web app from a sample I found, and get a warning in my output "DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead."
In the package-lock.json file it refers to safer-buffer, which from my research is what is used to upgrade the buffer, however I am assuming this may be causing the issue. Here are the parts of the file which refer to buffer:
"asn1": {
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
"integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
"requires": {
"safer-buffer": "~2.1.0"
}
"bl": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-2.2.0.tgz",
"integrity": "sha512-wbgvOpqopSr7uq6fJrLH8EsvYMJf9gzfo2jCsL2eTy75qXPukA4pCgHamOQkZtY5vmfVtjB+P3LNlMHW5CEZXA==",
"requires": {
"readable-stream": "^2.3.5",
"safe-buffer": "^5.1.1"
}
"buffer-equal-constant-time": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
"integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk="
},
"ecc-jsbn": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
"integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
"requires": {
"jsbn": "~0.1.0",
"safer-buffer": "^2.1.0"
}
},
"ecdsa-sig-formatter": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
"requires": {
"safe-buffer": "^5.0.1"
}
},
"express": {
"version": "4.16.4",
"resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz",
"integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==",
"requires": {
"accepts": "~1.3.5",
"array-flatten": "1.1.1",
"body-parser": "1.18.3",
"content-disposition": "0.5.2",
"content-type": "~1.0.4",
"cookie": "0.3.1",
"cookie-signature": "1.0.6",
"debug": "2.6.9",
"depd": "~1.1.2",
"encodeurl": "~1.0.2",
"escape-html": "~1.0.3",
"etag": "~1.8.1",
"finalhandler": "1.1.1",
"fresh": "0.5.2",
"merge-descriptors": "1.0.1",
"methods": "~1.1.2",
"on-finished": "~2.3.0",
"parseurl": "~1.3.2",
"path-to-regexp": "0.1.7",
"proxy-addr": "~2.0.4",
"qs": "6.5.2",
"range-parser": "~1.2.0",
"safe-buffer": "5.1.2",
"send": "0.16.2",
"serve-static": "1.13.2",
"setprototypeof": "1.1.0",
"statuses": "~1.4.0",
"type-is": "~1.6.16",
"utils-merge": "1.0.1",
"vary": "~1.1.2"
}
"iconv-lite": {
"version": "0.4.23",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz",
"integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==",
"requires": {
"safer-buffer": ">= 2.1.2 < 3"
}
},
"jwa": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
"integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
"requires": {
"buffer-equal-constant-time": "1.0.1",
"ecdsa-sig-formatter": "1.0.11",
"safe-buffer": "^5.0.1"
}
},
"jws": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
"integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
"requires": {
"jwa": "^1.4.1",
"safe-buffer": "^5.0.1"
}
},
"mysql": {
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/mysql/-/mysql-2.16.0.tgz",
"integrity": "sha512-dPbN2LHonQp7D5ja5DJXNbCLe/HRdu+f3v61aguzNRQIrmZLOeRoymBYyeThrR6ug+FqzDL95Gc9maqZUJS+Gw==",
"requires": {
"bignumber.js": "4.1.0",
"readable-stream": "2.3.6",
"safe-buffer": "5.1.2",
"sqlstring": "2.3.1"
}
},
"readable-stream": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
"requires": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
"isarray": "~1.0.0",
"process-nextick-args": "~2.0.0",
"safe-buffer": "~5.1.1",
"string_decoder": "~1.1.1",
"util-deprecate": "~1.0.1"
}
},
"request": {
"version": "2.88.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
"integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
"requires": {
"aws-sign2": "~0.7.0",
"aws4": "^1.8.0",
"caseless": "~0.12.0",
"combined-stream": "~1.0.6",
"extend": "~3.0.2",
"forever-agent": "~0.6.1",
"form-data": "~2.3.2",
"har-validator": "~5.1.0",
"http-signature": "~1.2.0",
"is-typedarray": "~1.0.0",
"isstream": "~0.1.2",
"json-stringify-safe": "~5.0.1",
"mime-types": "~2.1.19",
"oauth-sign": "~0.9.0",
"performance-now": "^2.1.0",
"qs": "~6.5.2",
"safe-buffer": "^5.1.2",
"tough-cookie": "~2.4.3",
"tunnel-agent": "^0.6.0",
"uuid": "^3.3.2"
}
},
"safe-buffer": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
},
"safer-buffer": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
},
"sshpk": {
"version": "1.16.1",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
"integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
"requires": {
"asn1": "~0.2.3",
"assert-plus": "^1.0.0",
"bcrypt-pbkdf": "^1.0.0",
"dashdash": "^1.12.0",
"ecc-jsbn": "~0.1.1",
"getpass": "^0.1.1",
"jsbn": "~0.1.0",
"safer-buffer": "^2.0.2",
"tweetnacl": "~0.14.0"
}
},
"string_decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"requires": {
"safe-buffer": "~5.1.0"
}
},
"tunnel-agent": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
"requires": {
"safe-buffer": "^5.0.1"
}
},
Anyone know what I need to do to "upgrade" these references so I am not getting the depreciation warning?
Just like the warning said
DeprecationWarning: Buffer() is deprecated due to security and
usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(),
or Buffer.from() methods instead.
To avoid the depreciation warning. You need to find out the new Buffer() methods in your codes and replace them with a new one. Such as in the extend-node.js file(NodeTaskApp-master\node_modules\iconv-lite\lib), Line 13:
iconv.supportsNodeEncodingsExtension = !(Buffer.from || new Buffer(0) instanceof Uint8Array);

Managing React Native 0.44.0 using yarn; dependency issues causing packager to crash

As stated I am using yarn as a package manager, and recently upgraded my application to React-Native 0.44.0. My package.json is as follows:
{
"name": "Project",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"postinstall": "node_modules/.bin/rn-nodeify --install crypto --hack"
},
"dependencies": {
"assert": "^1.4.1",
"asyncstorage-down": "^3.1.1",
"braintree": "^1.46.0",
"browserify-zlib": "^0.1.4",
"buffer": "^3.6.0",
"console-browserify": "^1.1.0",
"constants-browserify": "0.0.1",
"create-hmac": "^1.1.4",
"dns.js": "^1.0.1",
"domain-browser": "^1.1.7",
"events": "^1.1.1",
"firebase": "^3.6.3",
"global": "^4.3.2",
"https-browserify": "0.0.1",
"jest-haste-map": "^18.1.0",
"jwt-simple": "^0.5.1",
"moment": "^2.17.1",
"os-browserify": "^0.1.2",
"path-browserify": "0.0.0",
"process": "^0.11.9",
"querystring-es3": "^0.2.1",
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-cli": "^2.0.1",
"react-native-crypto": "^2.0.1",
"react-native-facebook-login": "^1.4.0",
"react-native-google-places-autocomplete": "^1.2.6",
"react-native-http": "github:tradle/react-native-http#834492d",
"react-native-level-fs": "^2.0.1",
"react-native-linear-gradient": "1.5.15",
"react-native-looped-carousel": "^0.1.4",
"react-native-maps": "0.12.4",
"react-native-material-kit": "^0.4.1",
"react-native-randombytes": "^2.2.0",
"react-native-router-flux": "3.37.0",
"react-native-svg": ">=5.1.8",
"react-native-svg-uri": "0.0.3",
"react-native-tcp": "^2.0.4",
"react-native-textinput-effects": "^0.2.0",
"react-native-twitter-signin": "github:rakannimer/react-native-twitter-signin",
"react-native-udp": "^1.2.9",
"react-native-vector-icons": "^3.0.0",
"readable-stream": "^1.0.33",
"rn-nodeify": "^6.0.1",
"stream-browserify": "^1.0.0",
"timers-browserify": "^1.4.2",
"tty-browserify": "0.0.0",
"url": "^0.10.3",
"vm-browserify": "0.0.4"
},
"jest": {
"preset": "react-native"
},
"devDependencies": {
"babel-jest": "17.0.2",
"babel-preset-react-native": "1.9.0",
"jest": "17.0.3",
"react-test-renderer": "15.4.1"
},
"react-native": {
"crypto": "react-native-crypto",
"zlib": "browserify-zlib",
"console": "console-browserify",
"constants": "constants-browserify",
"dns": "dns.js",
"net": "react-native-tcp",
"domain": "domain-browser",
"http": "react-native-http",
"https": "https-browserify",
"os": "os-browserify",
"path": "path-browserify",
"querystring": "querystring-es3",
"fs": "react-native-level-fs",
"_stream_transform": "readable-stream/transform",
"_stream_readable": "readable-stream/readable",
"_stream_writable": "readable-stream/writable",
"_stream_duplex": "readable-stream/duplex",
"_stream_passthrough": "readable-stream/passthrough",
"dgram": "react-native-udp",
"stream": "stream-browserify",
"timers": "timers-browserify",
"tty": "tty-browserify",
"vm": "vm-browserify"
},
"browser": {
"crypto": "react-native-crypto",
"zlib": "browserify-zlib",
"console": "console-browserify",
"constants": "constants-browserify",
"dns": "dns.js",
"net": "react-native-tcp",
"domain": "domain-browser",
"http": "react-native-http",
"https": "https-browserify",
"os": "os-browserify",
"path": "path-browserify",
"querystring": "querystring-es3",
"fs": "react-native-level-fs",
"_stream_transform": "readable-stream/transform",
"_stream_readable": "readable-stream/readable",
"_stream_writable": "readable-stream/writable",
"_stream_duplex": "readable-stream/duplex",
"_stream_passthrough": "readable-stream/passthrough",
"dgram": "react-native-udp",
"stream": "stream-browserify",
"timers": "timers-browserify",
"tty": "tty-browserify",
"vm": "vm-browserify"
}
}
Running react-native run-android succeeds in building the project, but then the packager crashes with te following error:
Bundling `index.android.js` 44.9% (327/488), failed.
Error: ENOENT: no such file or directory, open '/Users/chrisdock/Desktop/Jdoe/jdoe-redux/node_modules/react-native-svg/node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js'
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:491:33)
at Module._readSourceCode (/Users/chrisdock/Desktop/Jdoe/jdoe-redux/node_modules/react-native/packager/src/node-haste/Module.js:200:29)
at Module._getCacheProps (/Users/chrisdock/Desktop/Jdoe/jdoe-redux/node_modules/react-native/packager/src/node-haste/Module.js:420:29)
at Module._readFromTransformCache (/Users/chrisdock/Desktop/Jdoe/jdoe-redux/node_modules/react-native/packager/src/node-haste/Module.js:376:29)
at Module.readCached (/Users/chrisdock/Desktop/Jdoe/jdoe-redux/node_modules/react-native/packager/src/node-haste/Module.js:363:25)
at Promise.resolve.then (/Users/chrisdock/Desktop/Jdoe/jdoe-redux/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:167:29)
I'm not sure why the packager is looking for nested dependencies instead of in node_modules/react-native, or why yarn doesn't just install the nested dependencies if that's what it needs to do.

npm install - ERR! addLocal Could not install on Windows 10

I'm trying to install a new nodeJS project.
I set node and npm as environment variable
When I run command npm install, I got errors as below:
What is my wrong?
Update details of package.json
{
"name": "Project for myself",
"version": "2.0.0",
"private": true,
"scripts": {
"start": "node_modules/react-native/packager/packager.sh",
"test": "jest"
},
"dependencies": {
"firebase": "^3.6.4",
"lodash": "^4.17.2",
"moment": "^2.17.1",
"react": "15.4.2",
"react-addons-shallow-compare": "^15.3.2",
"react-immutable-component": "^0.0.1",
"react-native": "0.42.0-rc.3",
"react-native-admob": "git://github.com/minhcasi/react-native-admob.git",
"react-native-animatable": "0.*",
"react-native-drawer": "2.*",
"react-native-dropdownalert": "^2.3.0",
"react-native-fbsdk": "0.*",
"react-native-fence-html": "^1.0.6",
"react-native-global-props": "^1.1.1",
"react-native-invertible-scroll-view": "^1.0.0",
"react-native-linear-gradient": "2.*",
"react-native-localization": "0.*",
"react-native-modalbox": "1.*",
"react-native-onesignal": "^3.0.3",
"react-native-parallax-scroll-view": "0.*",
"react-native-router-flux": "3.*",
"react-native-scrollable-tab-view": "0.*",
"react-native-smart-splash-screen": "^2.2.1",
"react-native-snap-carousel": "^1.4.0",
"react-native-spinkit": "1.*",
"react-native-swiper": "1.*",
"react-native-timeago": "0.*",
"react-native-vector-icons": "4.*",
"react-timer-mixin": "^0.13.3",
"react-tween-state": "^0.1.5",
"readable-stream": "^2.2.2",
"safe-html": "^1.0.0",
"sanitize-html": "^1.13.0",
"urijs": "^1.18.4",
"url": "^0.11.0",
"util": "^0.10.3",
"wpapi": "^1.0.1"
},
"devDependencies": {
"babel-jest": "18.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "18.1.0",
"react-test-renderer": "15.4.2"
},
"jest": {
"preset": "react-native"
}
}
The installing worked with this package.json content:
{
"name": "Project for myself",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.0.0-alpha.6",
"react-native": "0.43.4"
},
"devDependencies": {
"babel-jest": "19.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "19.0.2",
"react-test-renderer": "16.0.0-alpha.6"
},
"jest": {
"preset": "react-native"
}
}
Issue is with the version of your application, to fix edit your package.json files version parameter to valid format
"version": "2.0.0"
For more information on node.js versioning refer the following documentation.
UPDATE
Try following and try again,
npm cache clear -f

Resources