Pm2 deployment Unexpected token. Report an error

pm2 deployment Times error, has quoted the babel plug-in, but still reported the error of es6, ask God for advice, thank you very much!

   const policies = this.options.render.csp.policies ? {...this.options.render.csp.policies} : null
                                                           ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/www/baotuan/nuxt/source/node_modules/nuxt/lib/core/renderer.js:19:24)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nuxt@1.1.0 build: `nuxt build && backpack build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nuxt@1.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-06-23T09_16_41_689Z-debug.log

  post-deploy hook failed


Deploy failed

node -v 9.6.1
npm -v 5.6.0
Mar.21,2021

error is {.this.options.render.csp.error} does not support, that is, does not support object spread syntax, maybe your node version is too low?


my side upgrades node to version 12.x, and this problem is solved.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38273-2c0d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38273-2c0d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?