dev-cli icon indicating copy to clipboard operation
dev-cli copied to clipboard

Missing modules in windows installer

Open RobQuistNL opened this issue 5 years ago • 3 comments

After building a windows app (from Linux because building it on Windows doesn't work), and running the generated installer, the program does seem to run, but the commands added seem to be missing:

C:\Users\PC>catalyst
A tool to manage dependencies and speed up your process

VERSION
  @gamemakerhub/catalyst/0.0.0 win32-x64 node-v10.15.3

USAGE
  $ catalyst [COMMAND]

COMMANDS
  hello  describe the command here
  help   display help for catalyst
  tree   List the contents of the current project


C:\Users\PC>catalyst tree
Error: Cannot find module 'C:/Program Files/@gamemakerhubcatalyst/client/lib/commands/tree'
    at fetch (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/config/lib/plugin.js:97:31)
    at Plugin.findCommand (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/config/lib/plugin.js:115:21)
    at Object.load (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/config/lib/plugin.js:48:72)
    at Config.runCommand (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/config/lib/config.js:149:27)    at Main.run (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/command/lib/main.js:21:27)
    at Main._run (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/command/lib/command.js:35:31)

RobQuistNL avatar May 04 '19 15:05 RobQuistNL

Having the same issue, after building windows app on Mac! Were you able to solve or work around this issue? I'm really stuck here and have no idea, how I can distribute my CLI

sthuber90 avatar Jun 11 '19 17:06 sthuber90

I actually got rid of this and made my CLI in PHP with a custom NSIS installer.. So not really a solution for you I think, sorry :P

RobQuistNL avatar Jun 12 '19 07:06 RobQuistNL

Setting "composite": false in tsconfig.json did the trick for me. I believe this issue can be closed then with a reference also on https://github.com/oclif/dev-cli/pull/109 as possible fix to this issue.

sthuber90 avatar Jun 12 '19 13:06 sthuber90