Я сталкиваюсь с проблемой, когда пытаюсь отреагировать на работу с моим проектом Laravel.
Я использую Homestead на Windows. Пока ssh'd на моем виртуальном сервере, и я в корне моего проекта, я запустил
composer install
php artisan preset react
npm install && npm run dev
Я получаю следующие ошибки
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN img-loader@3.0.0 requires a peer of imagemin@^5.0.0 but none was installed.
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none was installed.
npm ERR! Linux 4.4.0-92-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! path ../acorn/bin/acorn
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../acorn/bin/acorn' -> '/home/vagrant/www/todo/node_modules/.bin/acorn'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/www/todo/npm-debug.log
В мои активы / js / components добавлен реагирующий файл example.js.
Я не слишком уверен, куда идти с этим, поэтому любая помощь будет оценена