Skip to content

Commit

Permalink
fix: node path
Browse files Browse the repository at this point in the history
  • Loading branch information
irgaly committed Nov 22, 2022
1 parent e641419 commit 1f499ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,8 @@ plugins.withType<NodeJsRootPlugin> {
outputs.files(betterSqlite3.resolve("build/Release/better_sqlite3.node"))
outputs.cacheIf { true }
workingDir = betterSqlite3
commandLine = listOf("sh", "-c", "$npm run install")
commandLine =
listOf("sh", "-c", "PATH=:${nodeEnv.nodeDir}/bin:\$PATH $npm run install --verbose")
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ plugins.withType<NodeJsRootPlugin> {
outputs.files(betterSqlite3.resolve("build/Release/better_sqlite3.node"))
outputs.cacheIf { true }
workingDir = betterSqlite3
commandLine = listOf("sh", "-c", "$npm run install")
commandLine =
listOf("sh", "-c", "PATH=:${nodeEnv.nodeDir}/bin:\$PATH $npm run install --verbose")
}
}
}
Expand Down

0 comments on commit 1f499ff

Please sign in to comment.