code-gnu-global
code-gnu-global copied to clipboard
I download the code ,use vsce package to build the plugin,but report error;
Executing prepublish script 'npm run vscode:prepublish'... ERROR Command failed: npm run vscode:prepublish internal/modules/cjs/loader.js:797 throw err; ^
Error: Cannot find module 'D:\code-gnu-global\code-gnu-global\node_modules\vscode\bin\compile'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] vscode:prepublish: node ./node_modules/vscode/bin/compile
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] vscode:prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
$ node -v v12.12.0
$ npm -v 6.11.3
anyone had suggestion ?