dawson-org / dawson-cli

A serverless web framework for Node.js on AWS (CloudFormation, CloudFront, API Gateway, Lambda)
https://dawson.sh
GNU General Public License v3.0
713 stars 25 forks source link

windows-compat #143

Closed lusentis closed 7 years ago

lusentis commented 7 years ago
lusentis commented 7 years ago

Okay, after a few hours on Windows:

  1. I'm stuck at npm install never exiting when run inside a docker container (this command never ends: docker run -v "C:/Users/Simone L/Documents/GitHub/dawson-examples/1-basic-spa/.dawson-dist":/dawson-dist lambci/lambda:build bash -c " cd /dawson-dist && NODE_ENV=production npm install --verbose babel-cli babel-polyfill babel-preset-env babel-plugin-transform-object-rest-spread && NODE_ENV=production npm install --verbose && chmod -Rf a+rX ."). I also think that execa fails to report errors occurred (or dawson is not .catching a promise rejection?). The same command works when run from macOS and Ubuntu.
  2. I cannot delete the .dawson-dist folder because filenames are too long (it can't be renamed either, for an unknown reason: Access is denied)
  3. I cannot delete the .dawson-dist folder from Explorer either because it's supposedly in use by an application (I have terminated all the processes from the task manager, killed all the docker containers and stopped the docker daemon)
  4. Again, since npm install never ends, I can't test this further, so I'm closing this issue and I'm installing Ubuntu ftw

Feel free to test this branch and re-open should you have any further info or guidance.