Good evening:
thereafter i run this command rails webpacker , yields a bunch of warnings so:
Code :
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils/version.rb:4: warning: already initialized constant FileUtils::VERSION
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.3.0/lib/fileutils/version.rb:4: warning: previous definition of VERSION was here
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1267: warning: already initialized constant FileUtils::Entry_::S_IF_DOOR
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.3.0/lib/fileutils.rb:1285: warning: previous definition of S_IF_DOOR was here
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1540: warning: already initialized constant FileUtils::Entry_::DIRECTORY_TERM
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.3.0/lib/fileutils.rb:1568: warning: previous definition of DIRECTORY_TERM was here
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1595: warning: already initialized constant FileUtils::OPT_TABLE
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.3.0/lib/fileutils.rb:1626: warning: previous definition of OPT_TABLE was here
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1649: warning: already initialized constant FileUtils::LOW_METHODS
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.3.0/lib/fileutils.rb:1685: warning: previous definition of LOW_METHODS was here
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1656: warning: already initialized constant FileUtils::METHODS
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/fileutils-1.3.0/lib/fileutils.rb:1692: warning: previous definition of METHODS was here
Available Webpacker tasks are:
webpacker:info Provides information on Webpacker's environment
webpacker:install Installs and setup webpack with Yarn
webpacker:compile Compiles webpack bundles based on environment
webpacker:clobber Removes the webpack compiled output directory
webpacker:check_node Verifies if Node.js is installed
webpacker:check_yarn Verifies if Yarn is installed
webpacker:check_binstubs Verifies that webpack & webpack-dev-server are present
webpacker:binstubs Installs Webpacker binstubs in this application
webpacker:verify_install Verifies if Webpacker is installed
webpacker:yarn_install Support for older Rails versions. Install all JavaScript dependencies as specified via Yarn
webpacker:install:react Installs and setup example React component
webpacker:install:vue Installs and setup example Vue component
webpacker:install:angular Installs and setup example Angular component
webpacker:install:elm Installs and setup example Elm component
webpacker:install:stimulus Installs and setup example Stimulus component
webpacker:install:erb Installs Erb loader with an example
webpacker:install:coffee Installs CoffeeScript loader with an example
webpacker:install:typescript Installs Typescript loader with an example
I would appreciate your help in advanced
--- Post updated at 10:05 PM ---
by searching at google i found some commands to solve the issue but they didnt
Code :
gem uninstall fileutils
output
Code :
output
ERROR: While executing gem ... (Gem::InstallError)
fileutils is not installed in GEM_HOME, try:
gem uninstall -i /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0 fileutils
ubuntu@ubuntu-N53SV:~/hello_WWW$ gem uninstall -i /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0 fileutils
output
Successfully uninstalled fileutils-1.3.0
ubuntu@ubuntu-N53SV:~/hello_WWW$
Code :
gem update -default
output:
Code :
Updating installed gems
Updating fileutils
Fetching fileutils-1.3.0.gem
Successfully installed fileutils-1.3.0
Updating nokogiri
Fetching nokogiri-1.10.5.gem
Successfully installed nokogiri-1.10.5
Updating zeitwerk
Fetching zeitwerk-2.2.1.gem
Successfully installed zeitwerk-2.2.1
Gems updated: fileutils nokogiri zeitwerk
run once again rails server:
output:
Code :
27: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
26: from /home/ubuntu/hello_WWW/config/environment.rb:5:in `<main>'
25: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application.rb:363:in `initialize!'
24: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:60:in `run_initializers'
23: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
22: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
21: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
20: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `call'
19: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each'
18: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
17: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
16: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
15: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
14: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:61:in `block in run_initializers'
13: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `run'
12: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `instance_exec'
11: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/railtie.rb:84:in `block in <class:Engine>'
10: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker.rb:27:in `bootstrap'
9: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/commands.rb:14:in `bootstrap'
8: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/manifest.rb:18:in `refresh'
7: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/manifest.rb:83:in `load'
6: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:47:in `public_manifest_path'
5: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:43:in `public_output_path'
4: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:39:in `public_path'
3: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:80:in `fetch'
2: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:84:in `data'
1: from /home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:87:in `load'
/home/ubuntu/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:91:in `rescue in load': Webpacker configuration file not found /home/ubuntu/hello_WWW/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /home/ubuntu/hello_WWW/config/webpacker.yml (RuntimeError)
run once again rails webpacker:
Code :
[vailable Webpacker tasks are:
webpacker:info Provides information on Webpacker's environment
webpacker:install Installs and setup webpack with Yarn
webpacker:compile Compiles webpack bundles based on environment
webpacker:clobber Removes the webpack compiled output directory
webpacker:check_node Verifies if Node.js is installed
webpacker:check_yarn Verifies if Yarn is installed
webpacker:check_binstubs Verifies that webpack & webpack-dev-server are present
webpacker:binstubs Installs Webpacker binstubs in this application
webpacker:verify_install Verifies if Webpacker is installed
webpacker:yarn_install Support for older Rails versions. Install all JavaScript dependencies as specified via Yarn
webpacker:install:react Installs and setup example React component
webpacker:install:vue Installs and setup example Vue component
webpacker:install:angular Installs and setup example Angular component
webpacker:install:elm Installs and setup example Elm component
webpacker:install:stimulus Installs and setup example Stimulus component
webpacker:install:erb Installs Erb loader with an example
webpacker:install:coffee Installs CoffeeScript loader with an example
webpacker:install:typescript Installs Typescript loader with an example
Thanks for your help in advanced: