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

Unnecessary error when vagrant/chef tries to delete a proxy #5065

Closed
jabdoa2 opened this issue Apr 12, 2014 · 2 comments
Closed

Unnecessary error when vagrant/chef tries to delete a proxy #5065

jabdoa2 opened this issue Apr 12, 2014 · 2 comments

Comments

@jabdoa2
Copy link

jabdoa2 commented Apr 12, 2014

As soon as we set config.proxy.http = '' in Vagrant we will see the following npm error:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'config', 'delete', 'proxy' ]
2 info using npm@1.4.3
3 info using node@v0.10.26
4 verbose node symlink /usr/bin/node
5 error Error: ENOENT, unlink '/root/.npmrc'
6 error If you need help, you may report this *entire* log,
6 error including the npm and node versions, at:
6 error     <http://github.com/npm/npm/issues>
7 error System Linux 3.2.0-23-generic
8 error command "/usr/bin/node" "/usr/bin/npm" "config" "delete" "proxy"
9 error cwd /home/vagrant
10 error node -v v0.10.26
11 error npm -v 1.4.3
12 error path /root/.npmrc
13 error code ENOENT
14 error errno 34
15 verbose exit [ 34, true ]

In my opinion this should not happen. There was no proxy defined before so the delete went fine. Why the error?

@tmatilai
Copy link

tmatilai commented Jul 7, 2014

This is fixed in npm v1.4.17 (and npmconf v1.1.2).

@othiym23
Copy link
Contributor

Closing as resolved.

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

4 participants