Skip to content

Commit

Permalink
Ensure that the .npmrc file exists
Browse files Browse the repository at this point in the history
Work around npm/npm#5065

Ref: #54
Cc: @olekhy
  • Loading branch information
tmatilai committed May 29, 2014
1 parent 79b62f3 commit 2b273c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
# 1.3.2 / _Unreleased_

Improvements:

- Ensure that the .npmrc file exists to work around [NPM-5065](https://github.com/npm/npm/issues/5065)

# 1.3.1 / 2014-05-09

Expand Down
4 changes: 4 additions & 0 deletions lib/vagrant-proxyconf/action/configure_npm_proxy.rb
Expand Up @@ -28,6 +28,10 @@ def set_or_delete_proxy(key, value)
command << "set #{key} #{escape(value)}"
else
command << "delete #{key}"

# ensure that the .npmrc file exists to work around
# https://github.com/npm/npm/issues/5065
@machine.communicate.sudo("touch ~/.npmrc")
end
@machine.communicate.sudo(command)
end
Expand Down

0 comments on commit 2b273c8

Please sign in to comment.