0
私は、このコマンドRailsの角度のWebPACKの職長
rails new anrails --webpack=angular -d postgresql -T
と、いくつかの警告やエラーを除くと新しいレールのアプリを作成し、私がメッセージだこれら
warning [email protected]: The platform "linux" is incompatible with this module.
warning "[email protected]" has incorrect peer dependency "[email protected]".
An unexpected error occurred: "EPROTO: protocol error, symlink '../acorn/bin/acorn' -> '/vagrant/Sites/anrails/node_modules/acorn-dynamic-import/node_modules/.bin/acorn'".
warning "[email protected]" has unmet peer dependency "[email protected]^1.0.0 || ^2.0.0 || ^3.0.0".
warning "[email protected]" has unmet peer dependency "[email protected]^2.2.0 || ^3.0.0".
error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../multicast-dns/cli.js' -> '/vagrant/Sites/anrails/node_modules/bonjour/node_modules/.bin/multicast-dns'".
が好き:Webpackerが正常にインストールを。 Webpackerは今角度とtypescriptですがサポートされています。
それからそれは私がメッセージを取得し、角度とその依存関係をインストールし、このエラーにこの後
error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../json5/lib/cli.js' -> '/vagrant/Sites/anrails/node_modules/loader-utils/node_modules/.bin/json5'".
を取得します。
だから私はアプリ
web: bundle exec rails s -b 0.0.0.0
webpacker: bin/webpack-dev-server
のルートフォルダにProcfileを作成するとRails 5.1、Windowsの、ルビー2.4.1p111に浮浪者で実行して、次の
09:40:39 web.1 | started with pid 4514
09:40:39 webpacker.1 | started with pid 4515
09:40:40 webpacker.1 | yarn run v0.27.5
09:40:40 webpacker.1 | error Command "webpack-dev-server" not found.
09:40:40 webpacker.1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
09:40:40 webpacker.1 | exited with code 1
09:40:40 system | sending SIGTERM to all processes
09:40:41 web.1 | terminated by SIGTERM
を開始し、取得職長実行.2、ノード6.11.1、糸0.27.5