This repository has been archived by the owner. It is now read-only.

windows 7 - npm install mysql won't work #2999

Closed
brijrajsingh opened this Issue Mar 23, 2012 · 7 comments

Comments

Projects
None yet
4 participants

I have a nodejs installation on windows 7, nodejs is installed in c:\program files\nodejs

whenever i try installing any package, say "Mysql" using the command prompt like

npm install mysql
npm http GET https://registry.npmjs.org/mysql

it just gets stuck and nothing happens for long long time, i am running already on admin account with elevated prompt.

Member

piscisaureus commented Mar 26, 2012

What node version are you using?

The latest windows installation, available from nodejs website.

Sent from my iPad

On 26-Mar-2012, at 7:40 PM, Bert Belderreply@reply.github.com wrote:

What node version are you using?


Reply to this email directly or view it on GitHub:
joyent#2999 (comment)

isaacs commented Mar 26, 2012

Can you run this npm install mysql -ddd and post the output?

Hi,
Here you go....and it got stuck after this...

C:\Program Files\nodejs>npm install mysql -ddd
npm info it worked if it ends with ok
npm verb cli [ 'C:\Program Files\nodejs\node.exe',
npm verb cli 'C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js',
npm verb cli 'install',
npm verb cli 'mysql',
npm verb cli '-ddd' ]
npm info using npm@1.1.0-3
npm info using node@v0.6.10
npm verb config file C:\Users\tpf.npmrc
npm verb config file C:\Program Files\nodejs\etc\npmrc
npm verb config file C:\Program Files\nodejs\node_modules\npm\npmrc
npm verb mkdir done: C:\Users\tpf\AppData\Roaming\npm 755
npm verb mkdir done: C:\Program Files\nodejs 755
npm verb caching C:\Program Files\nodejs\node_modules\npm\package.json
npm verb loadDefaults npm@1.1.0-3
npm verb caching C:\Program Files\nodejs\node_modules\express\package.json
npm verb loadDefaults express@2.5.8
npm verb cache add [ 'mysql', null ]
npm sill cache add: name, spec, args [ undefined,
npm sill cache add: name, spec, args 'mysql',
npm sill cache add: name, spec, args [ 'mysql', null ] ]
npm verb parsed url { pathname: 'mysql',
npm verb parsed url path: 'mysql',
npm verb parsed url href: 'mysql' }
npm verb addNamed [ 'mysql', '' ]
npm verb addNamed [ null, '' ]
npm sill name, range, hasData [ 'mysql', '', false ]
npm verb raw, before any munging mysql
npm verb url resolving [ 'https://registry.npmjs.org/', './mysql' ]
npm verb url resolved https://registry.npmjs.org/mysql
npm verb etag "ATP5A12H9ZOXA37FVJKYVPR0L"
npm http GET https://registry.npmjs.org/mysql

On Tue, Mar 27, 2012 at 12:42 AM, Isaac Z. Schlueter <
reply@reply.github.com

wrote:

Can you run this npm install mysql -ddd and post the output?


Reply to this email directly or view it on GitHub:
joyent#2999 (comment)

on windows box if i check url https://registry.npmjs.org/mysql it gives me certificate error. i believe this is the root of issue.

looks like they don't have the certificate installed on the website.

On Tue, Mar 27, 2012 at 2:19 PM, hardik <
reply@reply.github.com

wrote:

on windows box if i check url https://registry.npmjs.org/mysql it gives
me certificate error. i believe this is the root of issue.


Reply to this email directly or view it on GitHub:
joyent#2999 (comment)

isaacs commented Mar 27, 2012

There is a certificate on the website. It uses a specific CA, which is included with npm, but not bundled in your operating system, because it's my own, and I'm not a publicly recognized CA. (I'm only recognized by npm.)

Can you upgrade to a more recent node release (such as 0.6.14) and see if that fixes the problem? Thanks.

@isaacs isaacs closed this Mar 27, 2012

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.