Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

garbage in npm-package 'pg' #47

Closed
astro opened this issue Sep 2, 2011 · 1 comment
Closed

garbage in npm-package 'pg' #47

astro opened this issue Sep 2, 2011 · 1 comment

Comments

@astro
Copy link

astro commented Sep 2, 2011

Probably related to issue #21: somewhere in the build there's a hardcoded /home/brian/dev/node-postgres/build — could this be a stale .lock-wscript in the npm pkg despite its mention in .gitignore?

$ npm i .

> [email protected] install /home/s/p/channel-server/node_modules/pg
> node-waf configure build || true

Checking for program g++ or c++          : /usr/bin/g++ 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for node path                   : ok /home/s/.node_libraries 
Checking for node prefix                 : ok /usr 
Checking for program pg_config           : /usr/bin/pg_config 
'configure' finished successfully (0.058s)
Waf: Entering directory `/home/brian/dev/node-postgres/build'
Waf: Leaving directory `/home/brian/dev/node-postgres/build'
Traceback (most recent call last):
  File "/usr/bin/node-waf", line 18, in <module>
    Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
  File "/usr/share/nodejs/wafadmin/Scripting.py", line 145, in prepare
    prepare_impl(t, cwd, ver, wafdir)
  File "/usr/share/nodejs/wafadmin/Scripting.py", line 135, in prepare_impl
    main()
  File "/usr/share/nodejs/wafadmin/Scripting.py", line 188, in main
    fun(ctx)
  File "/usr/share/nodejs/wafadmin/Scripting.py", line 386, in build
    return build_impl(bld)
  File "/usr/share/nodejs/wafadmin/Scripting.py", line 405, in build_impl
    bld.compile()
  File "/usr/share/nodejs/wafadmin/Build.py", line 268, in compile
    os.chdir(self.bldnode.abspath())
OSError: [Errno 2] No such file or directory: '/home/brian/dev/node-postgres/build'

> [email protected] install /home/s/p/channel-server
> node-waf configure build

Checking for program coffee              : /home/s/p/channel-server/node_modules/.bin/coffee 
Checking for program cp                  : /bin/cp 
'configure' finished successfully (0.002s)
Waf: Entering directory `/home/s/p/channel-server/build'
Waf: Leaving directory `/home/s/p/channel-server/build'
'build' finished successfully (0.020s)
[email protected] ./node_modules/pg 
└── [email protected]
@brianc
Copy link
Owner

brianc commented Sep 3, 2011

published on one of my test OS's which had an outdated version of npm. Sorry about that. npm didn't ignore the build/ directory and that contained a pre-configured native module for my system. I've republished the current version without the garbage and you should have a clean install now.

@brianc brianc closed this as completed Sep 3, 2011
brianc added a commit that referenced this issue Dec 18, 2019
Remove support for deprecated pg.js package
brianc added a commit that referenced this issue Dec 20, 2019
* Fix for [email protected]

Don't return anything from `stream.submit`

* Add node@10 to travis version

* Relax version of [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants