You need to sign in to do that
Don't have an account?
Brooks Johnson 6
Can Not Generate Plugins
I am trying to learn to write plugins for the Salesforce CLI. I have followed the directions to prepare your environment from the documentation (https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_generate_prepare.htm). But after I run sfdx plugins:generate I get the error
AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: c:/Program Files (x86)/Salesforce CLI/client/node_modules/@salesforce/plugin-generator/templates/sfdxPlugin/test/tsconfig.json
I am assuming there is something wrong with my path or environment variables but I have not figured it out. I get the error in both Bash and the Windows Command Prompt. Any help with getting this configured would be awesome.
AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: c:/Program Files (x86)/Salesforce CLI/client/node_modules/@salesforce/plugin-generator/templates/sfdxPlugin/test/tsconfig.json
I am assuming there is something wrong with my path or environment variables but I have not figured it out. I get the error in both Bash and the Windows Command Prompt. Any help with getting this configured would be awesome.
It's probably having issues with the spaces in the path and thinks it's the end of the parameter you are passing.
Add double quotes around your path.
Try doing an update of CLI as there is a know issue in an older version - https://github.com/ommsolutions/generator-next/issues/1