You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending to production I get a fail along with a host of errors:
` ERROR Failed to compile with 1 errors 1:06:00 PM
error
/scripts/vendor.js from UglifyJs
Unexpected token: operator (>) [/scripts/vendor.js:54877,24]
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ production: node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix /setup/webpack.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`
In the Error Log I get this:
info it worked if it ends with ok 1 verbose cli [ '/usr/local/Cellar/node/10.4.0/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'run', 1 verbose cli 'production' ] 2 info using npm@6.8.0 3 info using node@v10.4.0 4 verbose run-script [ 'preproduction', 'production', 'postproduction' ] 5 info lifecycle @~preproduction: @ 6 info lifecycle @~production: @ 7 verbose lifecycle @~production: unsafe-perm in lifecycle true 8 verbose lifecycle @~production: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Applications/MAMP/htdocs/unitedpwa/wp-content/themes/united-pwa/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin 9 verbose lifecycle @~production: CWD: /Applications/MAMP/htdocs/unitedpwa/wp-content/themes/united-pwa 10 silly lifecycle @~production: Args: [ '-c', 10 silly lifecycle 'node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js' ] 11 silly lifecycle @~production: Returned: code: 2 signal: null 12 info lifecycle @~production: Failed to exec production script 13 verbose stack Error: @ production:node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js13 verbose stack Exit status 2 13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:182:13) 13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:182:13) 13 verbose stack at maybeClose (internal/child_process.js:961:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) 14 verbose pkgid @ 15 verbose cwd /Applications/MAMP/htdocs/unitedpwa/wp-content/themes/united-pwa 16 verbose Darwin 18.2.0 17 verbose argv "/usr/local/Cellar/node/10.4.0/bin/node" "/usr/local/bin/npm" "run" "production" 18 verbose node v10.4.0 19 verbose npm v6.8.0 20 error code ELIFECYCLE 21 error errno 2 22 error @ production:node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 22 error Exit status 2 23 error Failed at the @ production script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 2, true ]
Any ideas?
I imported the vue-chat by adding to the app.js file:
`import Chat from 'vue-beautiful-chat'
import router from './router'
// import { auth, database } from './firebase.config.js' - Uncomment if you need firebase
import App from './App.vue'
import store from './store'
import * as types from './store/mutation-types'
When sending to production I get a fail along with a host of errors:
` ERROR Failed to compile with 1 errors 1:06:00 PM
error
/scripts/vendor.js from UglifyJs
Unexpected token: operator (>) [/scripts/vendor.js:54877,24]
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ production:
node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix /setup/webpack.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`
In the Error Log I get this:
info it worked if it ends with ok 1 verbose cli [ '/usr/local/Cellar/node/10.4.0/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'run', 1 verbose cli 'production' ] 2 info using npm@6.8.0 3 info using node@v10.4.0 4 verbose run-script [ 'preproduction', 'production', 'postproduction' ] 5 info lifecycle @~preproduction: @ 6 info lifecycle @~production: @ 7 verbose lifecycle @~production: unsafe-perm in lifecycle true 8 verbose lifecycle @~production: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Applications/MAMP/htdocs/unitedpwa/wp-content/themes/united-pwa/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin 9 verbose lifecycle @~production: CWD: /Applications/MAMP/htdocs/unitedpwa/wp-content/themes/united-pwa 10 silly lifecycle @~production: Args: [ '-c', 10 silly lifecycle 'node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js' ] 11 silly lifecycle @~production: Returned: code: 2 signal: null 12 info lifecycle @~production: Failed to exec production script 13 verbose stack Error: @ production:
node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js13 verbose stack Exit status 2 13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:182:13) 13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:182:13) 13 verbose stack at maybeClose (internal/child_process.js:961:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) 14 verbose pkgid @ 15 verbose cwd /Applications/MAMP/htdocs/unitedpwa/wp-content/themes/united-pwa 16 verbose Darwin 18.2.0 17 verbose argv "/usr/local/Cellar/node/10.4.0/bin/node" "/usr/local/bin/npm" "run" "production" 18 verbose node v10.4.0 19 verbose npm v6.8.0 20 error code ELIFECYCLE 21 error errno 2 22 error @ production:
node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js22 error Exit status 2 23 error Failed at the @ production script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 2, true ]
Any ideas?
I imported the vue-chat by adding to the app.js file:
`import Chat from 'vue-beautiful-chat'
import router from './router'
// import { auth, database } from './firebase.config.js' - Uncomment if you need firebase
import App from './App.vue'
import store from './store'
import * as types from './store/mutation-types'
Vue.use(VueLazyload)
Vue.use(BootstrapVue)
Vue.use(Vuelidate)
Vue.use(Chat)`
The text was updated successfully, but these errors were encountered: