find the nodejs binary
upstream calls it node, debian calls it nodejs. We gotta look for both of them.
This commit is contained in:
parent
9c12ad0187
commit
2beaa7a2da
3 changed files with 13 additions and 5 deletions
6
lib/core/nodejs.nim
Normal file
6
lib/core/nodejs.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import os
|
||||
|
||||
proc findNodeJs*(): string =
|
||||
result = findExe("nodejs")
|
||||
if result == "":
|
||||
result = findExe("node")
|
||||
Loading…
Add table
Add a link
Reference in a new issue