Make your voice heard in 2025 → Answer 8 simple questions in this Survey
Open Survey

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

Note

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

json
{
  "name": "my-cool-app",
  "main": "src/main.ts",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@nativescript/core": "~8.8.0"
  },
  "devDependencies": {
    "@nativescript/android": "~8.8.0",
    "@nativescript/ios": "~8.8.0",
    "@nativescript/types": "~8.8.0",
    "@nativescript/webpack": "~5.0.0",
    "typescript": "~5.5.0"
  }
}