Skip to content

If command 'tns plugin create .. ' failed , directory with plugin repository name must be deleted #3962

@miroslavaivanova

Description

@miroslavaivanova

Tell us about the problem

Directory with plugin repository name will be created even though the command hasn't passed

Which platform(s) does your issue occur on?

iOS/Android/Both

Please provide the following version numbers that your issue occurs with:

  • CLI: next(5.0.0-2018-09-28)

Please tell us how to recreate the issue in as much detail as possible.

use command:
tns plugin create nativescript-ui-listview --template https://github.com/NativeScript/nativescript-plugin-seed/

You will see exception:

 module.js:557
    throw err;
    ^

Error: Cannot find module '/Users/mivanova/MyDocuments/plugin3/nativescript-ui-listview/src/scripts/postclone'
    at Function.Module._resolveFilename (module.js:555:15)
    at Function.Module._load (module.js:482:25)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:618:3

but the folder nativescript-ui-listview is created

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions