Josh

Joined

610 Experience
6 Lessons Completed
0 Questions Solved

Activity

Posted in Setup Windows 10 Discussion

Hi,

I got all the way through this so thanks for the walk through!

i ran
rails new sample
and got the following error
create
create README.md
create Rakefile
create .ruby-version
create config.ru
create .gitignore
create .gitattributes
create Gemfile
run git init from "."
error: chmod on /mnt/c/Users/chun/Desktop/rails_project/side_project/sample/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
create package.json
create app
create app/assets/config/manifest.js
create app/assets/stylesheets/application.css
create app/channels/application_cable/channel.rb
create app/channels/application_cable/connection.rb
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/javascript/channels/consumer.js
create app/javascript/channels/index.js
create app/javascript/packs/application.js
create app/jobs/application_job.rb
create app/mailers/application_mailer.rb
create app/models/application_record.rb
create app/views/layouts/application.html.erb
create app/views/layouts/mailer.html.erb
create app/views/layouts/mailer.text.erb
create app/assets/images
create app/assets/images/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/rails
create bin/rake
create bin/setup
create bin/spring
create bin/yarn
/home/chun/.rbenv/versions/3.0.0/lib/ruby/3.0.0/fileutils.rb:1346:in chmod': Operation not permitted @ apply2files - /mnt/c/Users/chun/Desktop/rails_project/side_project/sample/bin (Errno::EPERM)
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/3.0.0/fileutils.rb:1346:in
chmod'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/3.0.0/fileutils.rb:1038:in block (2 levels) in chmod_R'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/3.0.0/fileutils.rb:1493:in
preorder_traverse'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/3.0.0/fileutils.rb:1036:in block in chmod_R'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/3.0.0/fileutils.rb:1035:in
each'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/3.0.0/fileutils.rb:1035:in chmod_R'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/actions/file_manipulation.rb:154:in
chmod'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/lib/rails/generators/rails/app/app_generator.rb:19:in chmod'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/lib/rails/generators/rails/app/app_generator.rb:96:in
bin'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/lib/rails/generators/app_base.rb:164:in public_send'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/lib/rails/generators/app_base.rb:164:in
build'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/lib/rails/generators/rails/app/app_generator.rb:354:in create_bin_files'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/command.rb:27:in
run'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in
block in invoke_all'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in each'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in
map'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in invoke_all'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/group.rb:232:in
dispatch'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/base.rb:485:in start'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/lib/rails/commands/application/application_command.rb:26:in
perform'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/command.rb:27:in run'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in
invoke_command'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/thor-1.0.1/lib/thor.rb:392:in dispatch'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/lib/rails/command/base.rb:69:in
perform'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/lib/rails/command.rb:50:in invoke'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/lib/rails/cli.rb:18:in
'
from internal:/home/chun/.rbenv/versions/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb:85:in require'
from <internal:/home/chun/.rbenv/versions/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in
require'
from /home/chun/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.0/exe/rails:10:in <top (required)>'
from /home/chun/.rbenv/versions/3.0.0/bin/rails:23:in
load'
from /home/chun/.rbenv/versions/3.0.0/bin/rails:23:in `

'

Anyone have any idea what went wrong?