node: fix npx issue with @ in path to node
This commit is contained in:
parent
ca456a6237
commit
442fd527f1
1 changed files with 4 additions and 0 deletions
|
@ -60,6 +60,10 @@ class Node < Formula
|
|||
system "node", bootstrap/"bin/npm-cli.js", "install", "-ddd", "--global",
|
||||
"--prefix=#{libexec}", resource("npm").cached_download
|
||||
|
||||
# Fix from chrmoritz for ENOENT issue with @ in path to node
|
||||
inreplace libexec/"lib/node_modules/npm/node_modules/libnpx/index.js",
|
||||
"return child.escapeArg(npmPath, true)", "return npmPath"
|
||||
|
||||
# The `package.json` stores integrity information about the above passed
|
||||
# in `cached_download` npm resource, which breaks `npm -g outdated npm`.
|
||||
# This copies back over the vanilla `package.json` to fix this issue.
|
||||
|
|
Loading…
Reference in a new issue