We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e266fbf commit 20ca146Copy full SHA for 20ca146
ios/node.rb
@@ -5,11 +5,7 @@ def find_node
5
# If `pod install` is run inside a "virtual" environment like
6
# [Yarn](https://yarnpkg.com/), we might find Node wrappers instead of the
7
# actual binary.
8
- paths = `type --all --path node`.split("\n")
9
- i = paths.find_index { |bin| `file #{bin}`.include? 'Mach-O' }
10
- raise 'Could not find Node' if i.nil?
11
-
12
- paths[i]
+ `node --print "process.argv[0]"`.strip
13
end
14
15
def nearest_node_modules(project_root)
0 commit comments