We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
npmrc causes npm to install to home directory instead of nodeenv
Here is what happened when I tried to get eslint installed: 

```
$ pre-commit run --all-files
eslint..............................................................................................................................................................................................................................................................................................................Failed
hookid: eslint

xargs: eslint: No such file or directory
```

Moving .npmrc to nope.npmrc fixed the issue.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 from setuptools import find_packages
2 from setuptools import setup
3 
4 
5 setup(
6     name='pre_commit',
7     description=(
8         'A framework for managing and maintaining multi-language pre-commit '
9         'hooks.'
10     ),
11     url='https://github.com/pre-commit/pre-commit',
12     version='0.2.9',
13 
14     author='Anthony Sottile',
15     author_email='asottile@umich.edu',
16 
17     platforms='linux',
18     classifiers=[
19         'License :: OSI Approved :: MIT License',
20         'Programming Language :: Python :: 2',
21         'Programming Language :: Python :: 2.6',
22         'Programming Language :: Python :: 2.7',
23         'Programming Language :: Python :: 3',
24         'Programming Language :: Python :: 3.3',
25         'Programming Language :: Python :: 3.4',
26         'Programming Language :: Python :: Implementation :: CPython',
27         'Programming Language :: Python :: Implementation :: PyPy',
28     ],
29 
30     packages=find_packages('.', exclude=('tests*', 'testing*')),
31     package_data={
32         'pre_commit': [
33             'resources/pre-commit-hook',
34             'resources/rbenv.tar.gz',
35             'resources/ruby-build.tar.gz',
36             'resources/ruby-download.tar.gz',
37         ]
38     },
39     install_requires=[
40         'argparse',
41         'aspy.yaml',
42         'cached-property',
43         'jsonschema',
44         'nodeenv>=0.9.4',
45         'ordereddict',
46         'plumbum',
47         'pyyaml',
48         'simplejson',
49         'virtualenv',
50     ],
51     entry_points={
52         'console_scripts': [
53             'pre-commit = pre_commit.main:main',
54             'validate-config = pre_commit.clientlib.validate_config:run',
55             'validate-manifest = pre_commit.clientlib.validate_manifest:run',
56         ],
57     },
58 )
59
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@
         'aspy.yaml',
         'cached-property',
         'jsonschema',
-        'nodeenv>=0.9.4',
+        'nodeenv>=0.11.1',
         'ordereddict',
         'plumbum',
         'pyyaml',

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -41,7 +41,7 @@\n         'aspy.yaml',\n         'cached-property',\n         'jsonschema',\n-        'nodeenv>=0.9.4',\n+        'nodeenv>=0.11.1',\n         'ordereddict',\n         'plumbum',\n         'pyyaml',\n", "issue": "npmrc causes npm to install to home directory instead of nodeenv\nHere is what happened when I tried to get eslint installed: \n\n```\n$ pre-commit run --all-files\neslint..............................................................................................................................................................................................................................................................................................................Failed\nhookid: eslint\n\nxargs: eslint: No such file or directory\n```\n\nMoving .npmrc to nope.npmrc fixed the issue.\n\n", "before_files": [{"content": "from setuptools import find_packages\nfrom setuptools import setup\n\n\nsetup(\n    name='pre_commit',\n    description=(\n        'A framework for managing and maintaining multi-language pre-commit '\n        'hooks.'\n    ),\n    url='https://github.com/pre-commit/pre-commit',\n    version='0.2.9',\n\n    author='Anthony Sottile',\n    author_email='asottile@umich.edu',\n\n    platforms='linux',\n    classifiers=[\n        'License :: OSI Approved :: MIT License',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: Implementation :: CPython',\n        'Programming Language :: Python :: Implementation :: PyPy',\n    ],\n\n    packages=find_packages('.', exclude=('tests*', 'testing*')),\n    package_data={\n        'pre_commit': [\n            'resources/pre-commit-hook',\n            'resources/rbenv.tar.gz',\n            'resources/ruby-build.tar.gz',\n            'resources/ruby-download.tar.gz',\n        ]\n    },\n    install_requires=[\n        'argparse',\n        'aspy.yaml',\n        'cached-property',\n        'jsonschema',\n        'nodeenv>=0.9.4',\n        'ordereddict',\n        'plumbum',\n        'pyyaml',\n        'simplejson',\n        'virtualenv',\n    ],\n    entry_points={\n        'console_scripts': [\n            'pre-commit = pre_commit.main:main',\n            'validate-config = pre_commit.clientlib.validate_config:run',\n            'validate-manifest = pre_commit.clientlib.validate_manifest:run',\n        ],\n    },\n)\n", "path": "setup.py"}], "after_files": [{"content": "from setuptools import find_packages\nfrom setuptools import setup\n\n\nsetup(\n    name='pre_commit',\n    description=(\n        'A framework for managing and maintaining multi-language pre-commit '\n        'hooks.'\n    ),\n    url='https://github.com/pre-commit/pre-commit',\n    version='0.2.9',\n\n    author='Anthony Sottile',\n    author_email='asottile@umich.edu',\n\n    platforms='linux',\n    classifiers=[\n        'License :: OSI Approved :: MIT License',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: Implementation :: CPython',\n        'Programming Language :: Python :: Implementation :: PyPy',\n    ],\n\n    packages=find_packages('.', exclude=('tests*', 'testing*')),\n    package_data={\n        'pre_commit': [\n            'resources/pre-commit-hook',\n            'resources/rbenv.tar.gz',\n            'resources/ruby-build.tar.gz',\n            'resources/ruby-download.tar.gz',\n        ]\n    },\n    install_requires=[\n        'argparse',\n        'aspy.yaml',\n        'cached-property',\n        'jsonschema',\n        'nodeenv>=0.11.1',\n        'ordereddict',\n        'plumbum',\n        'pyyaml',\n        'simplejson',\n        'virtualenv',\n    ],\n    entry_points={\n        'console_scripts': [\n            'pre-commit = pre_commit.main:main',\n            'validate-config = pre_commit.clientlib.validate_config:run',\n            'validate-manifest = pre_commit.clientlib.validate_manifest:run',\n        ],\n    },\n)\n", "path": "setup.py"}]}