I used the new "npm Package Manager" to install some modules. I went to install faye-websocket. I typed "faye-we" in the edit control, which filtered the list down to just the one module I needed. I double clicked on that module in the list and it failed to install. Looking at the output I can see that it did not use the module name from the list, but rather the fragment of text I had typed in the search field.
Here is the output:
====Executing command 'npm install faye-we@"*" --save'====
npm WARN package.json ExpressApp@0.0.0 No repository field.
npm http GET https://registry.npmjs.org/faye-we
npm http 404 https://registry.npmjs.org/faye-we
npm ERR! 404 'faye-we' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'ExpressApp'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "faye-we@*" "--save"
npm ERR! cwd C:\Users\Bob\Documents\GitHub\TestExpress\ExpressApp
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code E404
npm
====npm command completed with exit code 1====
If I double click on a module for which you are showing me details, I think it's safe to assume I want to install that module and not just run "npm install" with whatever random stuff I typed in the search box.
If I click the install button on the top line, then presumably you do want to use what is typed in the search box (as that is apparently how people who want to do something other than a straight-module install are expected to enter their arguments).
Here is the output:
====Executing command 'npm install faye-we@"*" --save'====
npm WARN package.json ExpressApp@0.0.0 No repository field.
npm http GET https://registry.npmjs.org/faye-we
npm http 404 https://registry.npmjs.org/faye-we
npm ERR! 404 'faye-we' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'ExpressApp'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "faye-we@*" "--save"
npm ERR! cwd C:\Users\Bob\Documents\GitHub\TestExpress\ExpressApp
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code E404
npm
====npm command completed with exit code 1====
If I double click on a module for which you are showing me details, I think it's safe to assume I want to install that module and not just run "npm install" with whatever random stuff I typed in the search box.
If I click the install button on the top line, then presumably you do want to use what is typed in the search box (as that is apparently how people who want to do something other than a straight-module install are expected to enter their arguments).