apostrophecms / stagecoach

Painlessly deploy node.js applications to your staging and production servers. Use a standard VPS or dedicated server to host both Node and traditional Apache-based websites. Pairs nicely with nginx and mechanic.
306 stars 29 forks source link

After updating node on server to latest LTS version via nvm sc-deploy can't find deployments and can't deploy #26

Closed hexitex closed 5 years ago

hexitex commented 5 years ago

I updated my node version on centos 7 to the lastest 10.x LTS via NVM so i could use the apostrophe-pieces-export as it isn't compatible with the version installed with yum. After that trying to deploy throws the following errors:

npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/typechecker-14d76ee9/package.json' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/typechecker-14d76ee9/.npmignore' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/typechecker-14d76ee9/README.md' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/typechecker-14d76ee9/es6guardian.js' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/typechecker-14d76ee9/nakefile.js' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/xlsx-8b955292/xlsxworker.js' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/uglify-js-b46948fa/lib/mozilla-ast.js' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/ajv-0f488aff/dist/ajv.min.js.map' npm WARN tar ENOENT: no such file or directory, lstat '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/jimp-cbd871df/fonts/open-sans/open-sans-8-black' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/source-map-18cd80f9/dist/source-map.js' npm WARN tar ENOENT: no such file or directory, lstat '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/less-36173b10/lib/less/data' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/uploadfs-d2375c4c/test.svg' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/uploadfs-d2375c4c/test.txt' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/uploadfs-d2375c4c/test2.txt' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/uploadfs-d2375c4c/uploadfs.js' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/aws-sdk-1ab2561b/clients/emr.js' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/aws-sdk-1ab2561b/clients/es.d.ts' npm WARN tar ENOENT: no such file or directory, open '/opt/stagecoach/apps/bbag2/deployments/2018-12-04-12-07-50/node_modules/.staging/apostrophe-926df19a/lib/modules/apostrophe-ui/public/fonts/roboto-light-webfont.woff' Error during npm install! ERROR on deployment Removing failed deployment npm ERR! code E404 npm ERR! 404 Not Found: har-validator@5.1.2

hexitex commented 5 years ago

how can I reset?

hexitex commented 5 years ago

Just wondering if this project is still viable, should I be looking at an alternative? It is being pushed very hard on the docs for apostrophe and did seem to do a nice job until node was updated!

hexitex commented 5 years ago

I fixed this by installing latest npm and har-validator as 5.1.2 has been removed