NativeScript / nativescript-cli

Command-line interface for building NativeScript apps
https://www.npmjs.com/package/nativescript
Apache License 2.0
1.04k stars 195 forks source link

ENOENT: no such file or directory, lstat 'PathToProjectFolder\node_modules\nativescript-checkbox\package.json' #4697

Closed Islam-alshiki closed 5 years ago

Islam-alshiki commented 5 years ago

After uninstalling nativescript-checkbox using $ tns plugin remove nativescript-checkbox I can not build my project any more using $ tns build android

... [./main.ts] 2.38 KiB {bundle} [built]

  • 452 hidden modules Webpack compilation complete. ENOENT: no such file or directory, lstat 'ProjectPath\AngularAppAndroid\node_modules\nativescript-checkbox\package.json'

$ tns --version 5.4.0

"tns-ios": { "version": "5.4.0" }, "tns-android": { "version": "5.4.0" }

Islam-alshiki commented 5 years ago

package.json

{ "dependencies": { "@angular/animations": "~7.2.0", "@angular/common": "~7.2.0", "@angular/compiler": "~7.2.0", "@angular/core": "~7.2.0", "@angular/forms": "~7.2.0", "@angular/http": "~7.2.0", "@angular/platform-browser": "~7.2.0", "@angular/platform-browser-dynamic": "~7.2.0", "@angular/router": "~7.2.0", "nativescript-angular": "~7.2.0", "nativescript-checkbox": "^3.0.3", "nativescript-geolocation": "^5.1.0", "nativescript-theme-core": "~1.0.4", "reflect-metadata": "~0.1.12", "rxjs": "~6.3.0", "tns-core-modules": "~5.4.0", "zone.js": "~0.8.26" }, "devDependencies": { "@angular/compiler-cli": "~7.2.0", "@nativescript/schematics": "~0.5.0", "@ngtools/webpack": "~7.2.0", "nativescript-dev-typescript": "~0.9.0", "nativescript-dev-webpack": "~0.22.0" }, "gitHead": "c06800e52ee1a184ea2dffd12a6702aaa43be4e3", "readme": "NativeScript Application" }

When i opened package.json, I found nativescript-checkbox still listed in package list, may tns plugin remove nativescript-checkbox does not remove it from package.json file. I remove it manually and bug fixed.

Thank you.