NordicPlayground / aws-iot-core-fleet-provisioning-with-nrf9160

Using Lambda function to register device in Provision by Claim
https://github.com/NordicPlayground/aws-iot-core-fleet-provisioning-with-nrf9160#readme
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Unable to bootstrap on Windows #5

Closed rmptxf closed 7 months ago

rmptxf commented 7 months ago

I get this error here when trying to:

PS C:\Users\Abdelali\Desktop\aws-iot-core-fleet-provisioning-with-nrf9160> npx cdk bootstrap
c:\Users\Abdelali\Desktop\aws-iot-core-fleet-provisioning-with-nrf9160\node_modules\yazl\index.js:367
  if (/^[a-zA-Z]:/.test(metadataPath) || /^\//.test(metadataPath)) throw new Error("absolute path: " + metadataPath);
                                                                         ^
Error: absolute path: C:/Users/Abdelali/Desktop/aws-iot-core-fleet-provisioning-with-nrf9160/lambda/provision.js
    at validateMetadataPath (c:\Users\Abdelali\Desktop\aws-iot-core-fleet-provisioning-with-nrf9160\node_modules\yazl\index.js:367:74)
    at ZipFile.ZipFile.addBuffer (c:\Users\Abdelali\Desktop\aws-iot-core-fleet-provisioning-with-nrf9160\node_modules\yazl\index.js:62:18)
    at packLambda (c:\Users\Abdelali\Desktop\aws-iot-core-fleet-provisioning-with-nrf9160\cdk\helpers\lambdas\packLambda.ts:61:11)
    at packLambdaFromPath (c:\Users\Abdelali\Desktop\aws-iot-core-fleet-provisioning-with-nrf9160\cdk\helpers\lambdas\packLambdaFromPath.ts:19:28)
    at packBackendLambdas (c:\Users\Abdelali\Desktop\aws-iot-core-fleet-provisioning-with-nrf9160\cdk\packBackendLambdas.ts:5:13)
    at <anonymous> (c:\Users\Abdelali\Desktop\aws-iot-core-fleet-provisioning-with-nrf9160\cdk\backend.ts:18:17)

Node.js v20.11.0
****************************************************
*** Newer version of CDK is available [2.132.1]  ***
*** Upgrade recommended (npm install -g aws-cdk) ***
****************************************************
coderbyheart commented 7 months ago

Hei Abdelali, thank you for reporting this issue. The project has not yet been tested with Windows.

Please use Linux or WSL.