8.7 released—WinterCG Compliance Part 1
Learn more

The package.json contains a list of dependencies, scripts and the entry point to your app (in the main field). Learn more on the NPM docs


NativeScript plugins should always be installed as dependencies, because NativeScript doesn't include native code from devDependencies.

  "name": "my-cool-app",
  "main": "src/main.ts",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@nativescript/core": "~8.5.0"
  "devDependencies": {
    "@nativescript/android": "8.5.0",
    "@nativescript/ios": "8.5.0",
    "@nativescript/types": "~8.5.0",
    "@nativescript/webpack": "~5.0.10",
    "typescript": "~4.5.5"