Reputation: 212
I try to build and debug an extension in Code.
I downloaded the sample of word-count from https://github.com/microsoft/vscode-wordcount.
When I clicked F5, ./out folder was not generated and I saw failure: Activating extension ms-vscode.wordcount
failed: Cannot find module 'd:/VSCode/vscode-wordcount/out/extension'.
I found the post https://github.com/Microsoft/vscode-go/issues/35 and I think this was because I failed to build the extension.
And I checked my path that node and npm were both set.
I found there were 2 possible issues.
.vscode\
-- launch.json
-- settings.json
-- tasks.json
image\
test\
typings\
-- vscode-typings.d.ts
extension.ts
package.json
tsconfig.json
Could you give me some hints how to investigate the issue?
Upvotes: 3
Views: 1720
Reputation: 1682
You probably downloaded directly from GitHub.
You will need to run npm install
in your project's folder in order to create the node_modules directory and add the required dependencies.
If you simply want to install the extension to use it, you will also need to:
npm install
OR
Upvotes: 4