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

Conversation

metux
Copy link
Contributor

@metux metux commented May 5, 2017

The 'clean' rule calls 'uninstall', which attemts destructive
operation in the host system and fails if run as unprivileged user.

nekrad@orion:~/src/packaging/pkg/npm.git$ make clean
rm -rf node_modules/marked node_modules/.bin/marked .building_marked
rm -rf node_modules/marked-man node_modules/.bin/marked-man .building_marked-man
rm -rf
.building_marked
.building_marked-man
html/doc
man
nodejs cli.js rm npm -g -f
npm WARN using --force I sure hope you know what you are doing.
npm ERR! path /usr/lib/nodejs/nodejs-7.9/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/usr/lib/nodejs/nodejs-7.9/lib'
npm ERR! { Error: EACCES: permission denied, mkdir '/usr/lib/nodejs/nodejs-7.9/lib'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/lib/nodejs/nodejs-7.9/lib' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/nekrad/.npm/_logs/2017-05-05T13_08_46_485Z-debug.log
make: *** [uninstall] Error 243

The 'clean' rule calls 'uninstall', which attemts ***destructive***
operation in the host system and fails if run as unprivileged user.

nekrad@orion:~/src/packaging/pkg/npm.git$ make clean
rm -rf node_modules/marked node_modules/.bin/marked .building_marked
rm -rf node_modules/marked-man node_modules/.bin/marked-man .building_marked-man
rm -rf
.building_marked
.building_marked-man
html/doc
man
nodejs cli.js rm npm -g -f
npm WARN using --force I sure hope you know what you are doing.
npm ERR! path /usr/lib/nodejs/nodejs-7.9/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/usr/lib/nodejs/nodejs-7.9/lib'
npm ERR! { Error: EACCES: permission denied, mkdir '/usr/lib/nodejs/nodejs-7.9/lib'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/lib/nodejs/nodejs-7.9/lib' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/nekrad/.npm/_logs/2017-05-05T13_08_46_485Z-debug.log
make: *** [uninstall] Error 243
@isaacs isaacs added the review label May 5, 2017
Copy link
Contributor

@iarna iarna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable to me.

As a dev, literally the only thing I use the makefile for is make publish and make release (for upstreaming to Node.js). We should update the Makefile to reflect the reality of our use. (It's just sitting there, encouraging contributors to try to use it and then it goes and does surprising thigns…)

@zkat zkat removed the review label Mar 6, 2018
Copy link
Contributor

@zkat zkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@zkat zkat changed the base branch from latest to release-next March 6, 2018 23:29
@zkat zkat merged this pull request into npm:release-next Mar 8, 2018
zkat pushed a commit that referenced this pull request Mar 8, 2018
The 'clean' rule calls 'uninstall', which attemts ***destructive***
operation in the host system and fails if run as unprivileged user.

PR-URL: #16540
Credit: @metux
Reviewed-By: @iarna
Reviewed-By: @zkat
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants