Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Using "make" in preuninstall script fails for link packages #63

Closed
polotek opened this issue Jun 9, 2010 · 2 comments
Closed

Using "make" in preuninstall script fails for link packages #63

polotek opened this issue Jun 9, 2010 · 2 comments

Comments

@polotek
Copy link

polotek commented Jun 9, 2010

I installed libxmljs from the registry and everything went fine, including the "make" pre-install script. But when I try to uninstall, I get an error on the "make clean" pre-uninstall script. Basically it looks like it's not running the command from the right dir so it can't find the MakeFile. Here's the output.

npm rm libxmljs 0.3.1-latest-LINK-bfbf0ab9
npm configfile /Users/polotek/.npmrc
npm sudo false
npm cli [ 'rm', 'libxmljs', '0.3.1-latest-LINK-bfbf0ab9' ]
npm version 0.1.15
npm uninstall about to remove: /Users/polotek/.node_libraries/.npm/libxmljs/0.3.1-latest-LINK-bfbf0ab9
npm uninstall checked deps
npm readJson /Users/polotek/.node_libraries/.npm/libxmljs/0.3.1-latest-LINK-bfbf0ab9/package/package.json
npm testEngine required: node ">=0.1.30"
npm lifecycle libxmljs-0.3.1-latest preuninstall
npm exec make "clean"
make: *** No rule to make target `clean'.  Stop.

npm ! Error: `make` failed with 2
    at ChildProcess.<anonymous> (/Users/polotek/.node_libraries/.npm/npm/0.1.15/package/lib/utils/exec.js:24:18)
    at ChildProcess.emit (events:32:26)
    at ChildProcess.onexit (child_process:128:12)
    at node.js:221:9

npm failure try running: 'npm help rm'
npm failure Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm failure or email it to <npm-@googlegroups.com>
@isaacs
Copy link
Contributor

isaacs commented Jun 10, 2010

Ah, this seems to be an issue with not getting the right tagged-version thing for link pacakges when it's running some lifecycle scripts. That's a bug.

@isaacs
Copy link
Contributor

isaacs commented Jun 10, 2010

Fixed in a9c4cf4

@npm npm locked and limited conversation to collaborators Oct 17, 2014
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants