You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/11/26 14:42:33 UTC

[GitHub] [openwhisk] neerajmangal opened a new pull request #4755: Specify npm command based on os for standalone compilation

neerajmangal opened a new pull request #4755: Specify npm command based on os for standalone compilation
URL: https://github.com/apache/openwhisk/pull/4755
 
 
   
   ## Description
   Standalone compilation was failing on windows os with below error. 
   
   ```
    Task :core:standalone:copyGWActions FAILED
   
   FAILURE: Build failed with an exception.
   
   * Where:
   Build file 'C:\Users\Administrator\openwhisk\core\standalone\build.gradle' line: 59
   
   * What went wrong:
   Execution failed for task ':core:standalone:copyGWActions'.
   > Execute failed: java.io.IOException: Cannot run program "npm" (in directory "C:\Users\Administrator\openwhisk\core\routemgmt\createApi"): CreateProcess error=2, The system cannot find the file specified
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
   
   ```
   
   This is because "npm" is not found on windows as it is placed as "npm.cmd". 
   
   ## My changes affect the following components
   <!--- Select below all system components are affected by your change. -->
   <!--- Enter an `x` in all applicable boxes. -->
   - [ ] API
   - [ ] Controller
   - [ ] Message Bus (e.g., Kafka)
   - [ ] Loadbalancer
   - [ ] Invoker
   - [ ] Intrinsic actions (e.g., sequences, conductors)
   - [ ] Data stores (e.g., CouchDB)
   - [ ] Tests
   - [ ] Deployment
   - [ ] CLI
   - [ ] General tooling
   - [ ] Documentation
   - [x] Standalone
   
   ## Checklist:
   <!--- Please review the points below which help you make sure you've covered all aspects of the change you're making. -->
   
   - [x] I signed an [Apache CLA](https://github.com/apache/openwhisk/blob/master/CONTRIBUTING.md).
   - [ ] I reviewed the [style guides](https://github.com/apache/openwhisk/wiki/Contributing:-Git-guidelines#code-readiness) and followed the recommendations (Travis CI will check :).
   - [ ] I added tests to cover my changes.
   - [ ] My changes require further changes to the documentation.
   - [ ] I updated the documentation where necessary.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services