Closed goessner closed 7 years ago
I finally managed to resolve the problem. In the node_modules
folder there were still a lot dependencies originating from vscode itself. After filtering those out, only a handful relevant were remaining, which I put into the dependencies
list of package.json
.
Everything is fine now ... please close this issue.
in short: After publishing and installing my extension 'Markdown+Math' I get
command 'extension.mdmath' not found
when trying to run it. Having a look at the extensions
node_modules
folder, I see only the three dependency folderskatex
... which is needed.markdown-it-katex
... which is also required.match-at
... which I don't know where it comes from, but this is irrelevant.After doing a
npm install
from the command line in that extensions main directory thenode_modules
folder is populated with a lot more modules. The extension is working properly after that.My
package.json
file has anentry.
My question is: What am I doing wrong or what can I do, if I don't want to force my users doing an extra
npm install
from the command line.I should mention, that I use the newest npm version 3.10.6 which generates a flat dependency folder structure now.
Steps to Reproduce: publishing and running extension ... Markdown+Math
> cd %USERPROFILE%\.vscode\extensions\goessner.mdmath-0.8.8
> npm install
*.md
file.Thanks ....