Skip to content

pg doesn't install with npm on Windows #72

Closed
@chowey

Description

@chowey

There is a problem installing pg on Windows with npm. This is due to the script that pg tries to run on install. The error message looks like this:

c:\node>npm install pg

> pg@0.6.3 install c:\node\node_modules\pg
> node-waf configure build || true

'node-waf' is not recognized as an internal or external command,
operable program or batch file.
'true' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! error installing pg@0.6.3 Error: pg@0.6.3 install: `node-waf configure
build || true`
... (blah blah blah)

As you can see, "true" is not a recognized command on Windows.

Is there a Windows-friendly way to rephrase the install script, something other than "node-waf configure build || true"? I know that something like "node-waf configure build || exit 0" would work, but I don't know what that does in Linux or Mac OSX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions