Skip to content

Commit f1f4b7c

Browse files
katorres02Carlos Torres
andauthored
Raise a more accurate error when 'which_command' is not installed (#3245)
* Raise a more accurate error when a which_command is not installed * replaced rpm by type command * removed which command code Co-authored-by: Carlos Torres <[email protected]>
1 parent 550c53e commit f1f4b7c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/tasks/webpacker/check_node.rake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ namespace :webpacker do
33
desc "Verifies if Node.js is installed"
44
task :check_node do
55
begin
6-
which_command = Gem.win_platform? ? "where" : "which"
7-
raise Errno::ENOENT if `#{which_command} node || #{which_command} nodejs`.strip.empty?
8-
96
node_version = `node -v || nodejs -v`.strip
107
raise Errno::ENOENT if node_version.blank?
118

0 commit comments

Comments
 (0)