➜ ~ npm list -g --depth=0
/usr/local/lib/node_modules/node/lib
├── @vue/cli@3.5.5
├── apollo-tracing@0.5.2
├── UNMET PEER DEPENDENCY graphql@0.10.x - 14.1.x
├── npm-install-peers@1.2.1
├── ts-node@8.0.3
└── typescript@3.4.3
npm ERR! peer dep missing: graphql@0.10.x - 14.1.x, required by apollo-tracing@0.5.2
npm ERR! peer dep missing: graphql@0.10.x - 14.1.x, required by apollo-tracing@0.5.2
npm ERR! peer dep missing: graphql@^0.12.0 || ^0.13.0 || ^14.0.0, required by graphql-extensions@0.5.4
➜ ~ npm uninstall vue-cli -g
up to date in 0.043s
➜ ~ npm install -g @vue/cli
npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
/usr/local/lib/node_modules/node/bin/vue -> /usr/local/lib/node_modules/node/lib/node_modules/@vue/cli/bin/vue.js
npm WARN ts-node@8.0.3 requires a peer of typescript@>=2.0 but none is installed. You must install peer dependencies yourself.
npm WARN apollo-tracing@0.5.2 requires a peer of graphql@0.10.x - 14.1.x but none is installed. You must install peer dependencies yourself.
+ @vue/cli@3.5.5
updated 1 package in 21.425s
➜ ~ vue --version
2.9.6
_token = "......"
_previous = {array} [1]
_flash = {array} [2]
cart = {array} [1]
export default {
props: ['editOrder'],
data: function () {
return {
order: _.cloneDeep(this.editOrder)
}
},
methods: {
saveOrder: function () {
console.log('triggered submit, save to DB and emit to parent component')
console.log(this.order)
}
},
watch: {
'order.products': {
handler: function (val) {
let productsSum = 0;
for (let key in val) {
let sum = val[key].quantity * val[key].price;
val[key].sum = sum
productsSum += sum;
}
this.order.products_sum = productsSum;
this.order.order_sum = _.toInteger(this.order.products_sum) + _.toInteger(this.order.delivery_sum);
},
deep: true
}
}
}
require('./bootstrap');
$(document).ready(function () {
$('.js-fullpage').fullpage();
});
try {
window.$ = window.jQuery = require('jquery');
} catch (e) {}
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] ='XMLHttpRequest';
let token = document.head.querySelector('meta[name="csrf-token"]');
if (token) {
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
} else {
console.error('CSRF token not found:
https://laravel.com/docs/csrf#csrf-x-csrf-token');
}
require('fullpage.js');
может быт ьпроблем в том, что nginx и php запускатся из под рута, и в логах это написано, нас крине выше видно, что php-fpm работает из под pankovalxndr на порту 9071
а в логах php-fpm.log такая запись:
[30-Aug-2019 11:13:01] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
еще в логах вижу
[30-Aug-2019 11:34:04] NOTICE: fpm is running, pid 75
[30-Aug-2019 11:34:04] NOTICE: ready to handle connections
а на скрине PID 201 и 202