Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin remove fails if plugin version is not available in npm #1541

Closed
dtopuzov opened this issue Feb 25, 2016 · 1 comment
Closed

Plugin remove fails if plugin version is not available in npm #1541

dtopuzov opened this issue Feb 25, 2016 · 1 comment

Comments

@dtopuzov
Copy link
Contributor

package.json:

{
  "nativescript": {
    "id": "com.telerik.plugindemo.barcodescanner",
    "tns-ios": {
      "version": "1.7.0-2016.2.23.1"
    },
    "tns-android": {
      "version": "1.6.2-2016.2.22.2"
    }
  },
  "dependencies": {
    "nativescript-barcodescanner": "1.2.1",
    "tns-core-modules": "file:../tns-core-modules.tgz"
  },
  "devDependencies": {
    "nativescript-dev-typescript": "^0.3.1",
    "typescript": "^1.8.2"
  }
}

tns plugin remove nativescript-barcodescanner
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN package.json @ No license field.
version not found: nativescript-barcodescanner@1.2.1

=> and pacakge.json is still the same, plugin not removed.

Tested with CLI in master.

This bug makes building sample apps for verified plugins hard.

@dtopuzov
Copy link
Contributor Author

Same applies if I have reference to local file and this file does not exist.

"dependencies": {
        "nativescript-imagepicker": "file:../../dist/package",
        "tns-core-modules": "1.5.0"
}

npm WARN package.json ExampleImgPick@0.0.2 No license field.
npm ERR! addLocal Could not install /Users/nsbuilduser/dist/package
ENOENT: no such file or directory, open '/Users/nsbuilduser/dist/package'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants