anseki / vscode-color

Helper with GUI to generate color codes such as CSS color notations.
MIT License
97 stars 27 forks source link

Error? Bug? #21

Closed crper closed 7 years ago

crper commented 7 years ago

Steps to Reproduce:

  1. install extendsion
  2. alt+c p or global command 'color picker' , can show GUI.....everytime show this status;

image

Log (All lines): (Click menu of VS Code "Help > Toggle Developer Tools", and click "Console" tab)

Host] Error: Cannot find module 'npm'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Function.M.d._load (d:\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:12:28523)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at getNpm (C:\Users\crper\.vscode\extensions\anseki.vscode-color-0.2.2\node_modules\process-bridge\process-bridge.js:139:15)
    at initModule (C:\Users\crper\.vscode\extensions\anseki.vscode-color-0.2.2\node_modules\process-bridge\process-bridge.js:220:10)
    at getHostCmd (C:\Users\crper\.vscode\extensions\anseki.vscode-color-0.2.2\node_modules\process-bridge\process-bridge.js:331:9)
    at C:\Users\crper\.vscode\extensions\anseki.vscode-color-0.2.2\node_modules\process-bridge\process-bridge.js:394:19
    at Object.exports.sendRequest (C:\Users\crper\.vscode\extensions\anseki.vscode-color-0.2.2\node_modules\process-bridge\process-bridge.js:468:34)
    at pickConvert (C:\Users\crper\.vscode\extensions\anseki.vscode-color-0.2.2\lib\color-helper.js:180:15)
    at exports.pick (C:\Users\crper\.vscode\extensions\anseki.vscode-color-0.2.2\lib\color-helper.js:220:24)
    at t.$executeContributedCommand (d:\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:10:25694)
    at t.e.handle (d:\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:10:10602)
    at s (d:\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:7:21356)
    at p (d:\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:7:22033)

I shold install node and npm on global environment!!!

image

anseki commented 7 years ago

Hi @crper, It seems that this is a duplicate of #14. Please read that issue, and comment to that if you need. And also, that seems a part of log. Your NPM does not seem to be available in the VS Code process.