Skip to content

Instantly share code, notes, and snippets.

@hyuki0000
Created June 18, 2017 13:08
Show Gist options
  • Save hyuki0000/22ca73f80b001ddb39dba1e87e01826f to your computer and use it in GitHub Desktop.
Save hyuki0000/22ca73f80b001ddb39dba1e87e01826f to your computer and use it in GitHub Desktop.
Mastodon 1.3.3 -> 1.4.3 でエラー
$ docker-compose pull
$ docker-compose build
$ docker-compose run --rm web rails db:migrate
$ docker-compose run --rm web rails mastodon:maintenance:prepare_for_foreign_keys
$ docker-compose run --rm web rails db:migrate
$ docker-compose run --rm web rails assets:precompile
Creating mastodon user (UID : 1000 and GID : 1000)...
Updating permissions...
Executing process...
yarn install v0.24.5
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
warning [email protected]: The engine "browser" appears to be invalid.
[3/4] Linking dependencies...
warning "[email protected]" has incorrect peer dependency "[email protected]".
error An unexpected error occurred: "ENOTEMPTY: directory not empty, rmdir '/mastodon/node_modules/.bin'".
info If you think this is a bug, please open a bug report with the information provided in "/mastodon/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Webpacker is installed 🎉 🍰
Using /mastodon/config/webpack/paths.yml file for setting up webpack paths
Compiling webpacker assets 🎉
sh: /mastodon/node_modules/.bin/webpack: not found
rails aborted!
JSON::ParserError: 743: unexpected token at ''
/mastodon/vendor/bundle/ruby/2.4.0/gems/webpacker-1.2/lib/tasks/webpacker/compile.rake:13:in `block (2 levels) in <top (required)>'
/mastodon/vendor/bundle/ruby/2.4.0/gems/webpacker-1.2/lib/tasks/webpacker/compile.rake:40:in `block in <top (required)>'
/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/command.rb:46:in `invoke'
/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/commands.rb:16:in `<top (required)>'
/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.0.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.0.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/dependencies.rb:292:in `block in require'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/dependencies.rb:258:in `load_dependency'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.1/lib/active_support/dependencies.rb:292:in `require'
bin/rails:4:in `<main>'
Tasks: TOP => webpacker:compile
(See full trace by running task with --trace)
@hyuki0000
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment