Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

vcd-ext new throws exception #236

Closed
tsimchev opened this issue Oct 26, 2021 · 0 comments · Fixed by #237
Closed

vcd-ext new throws exception #236

tsimchev opened this issue Oct 26, 2021 · 0 comments · Fixed by #237
Assignees

Comments

@tsimchev
Copy link
Contributor

Describe the bug
Versions of vcd-ext >= 0.0.13-beta.2 throw an error on vcd-ext new

To Reproduce
Steps to reproduce the behavior:

  1. npm -g i @vcd/[email protected] --save-dev
  2. vcd-ext new
$ npm -g i @vcd/[email protected] --save-dev
npm WARN deprecated @types/[email protected]: This is a stub types definition for MQTT (https://github.com/mqttjs/MQTT.js). MQTT provides its own type definitions, so you don't need @types/mqtt installed!
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
/Users/tsimchev/.nvm/versions/node/v12.19.0/bin/vcd-ext -> /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/bin/run
+ @vcd/[email protected]
updated 6 packages in 56.434s

$ rehash

$ vcd-ext new
    Error: Cannot find module 'tar-fs'
    Require stack:
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@vcd/care-package-plugin-import-vapp/lib/BuildActions.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@vcd/care-package-plugin-import-vapp/lib/index.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@vcd/care-package/lib/plugins/PluginLoader.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@vcd/care-package/lib/CarePackage.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@vcd/care-package/lib/index.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/lib/generators/new.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/yeoman-environment/lib/store.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/yeoman-environment/lib/environment.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/lib/ScaffoldingBaseCommand.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/lib/commands/new.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@oclif/config/lib/plugin.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@oclif/config/lib/config.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@oclif/config/lib/index.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@oclif/command/lib/command.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/node_modules/@oclif/command/lib/index.js
    - /Users/tsimchev/.nvm/versions/node/v12.19.0/lib/node_modules/@vcd/ext-cli/bin/run
    Code: MODULE_NOT_FOUND

Expected behavior

$ vcd-ext new
? Your solution name Enter a solution name (GettingStarted)
? Specify first version Either press enter or type in a different version
? Specify vendor name Type in vendor name, for this example we type in 'vmware'
? Specify vendor link Either press enter or type in a different vendor link, for this example we press enter
? Specify minimum required Cloud Director version Either press enter or type in a version, for this example we press enter
? Specify solution license Either press enter or type in a different license type, for this example we press enter
? Select extensibility elements (Press <space> to select, <a> to toggle all, <i> to invert selection)
◯ Import vApp
◯ Defined Entities
◯ UI Plugin

Screenshots
If applicable, add screenshots to help explain your problem.

Version:

vcd-ext --version
@vcd/ext-cli/0.0.13-beta.2 darwin-x64 node-v12.19.0
@tsimchev tsimchev pinned this issue Oct 26, 2021
@vilianvenkov vilianvenkov linked a pull request Oct 27, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants