Azure / pcs-cli

A CLI for deploying Azure IoT PCS
MIT License
33 stars 37 forks source link

Local deploy error #490

Closed Dolphinsimon closed 3 years ago

Dolphinsimon commented 5 years ago

Type of issue

Description

Local deploy error : Error: Cannot find module '/user/azure-iot-pcs-remote-monitoring-dotnet/pcs-cli/publish/solutions/remotemonitoring/armtemplates/local-static-map.json

Steps to reproduce

  1. run pcs -t remotemonitoring -s local
  2. after Application registered.
  3. { Error: Cannot find module '/user/azure-iot-pcs-remote-monitoring-dotnet/pcs-cli/publish/solutions/remotemonitoring/armtemplates/local-static-map.json' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at DeploymentManager.submit (/root/azure-iot-pcs-remote-monitoring-dotnet/pcs-cli/publish/deploymentmanager.js:74:30) at subPrompt.then.then.then.then.then.then (/root/azure-iot-pcs-remote-monitoring-dotnet/pcs-cli/publish/index.js:305:54) at at process._tickCallback (internal/process/next_tick.js:189:7) code: 'MODULE_NOT_FOUND' }

Expected behavior

...

Current behavior

...

Known workarounds

...

Possible solution

...

Context and Environment

ppathan commented 5 years ago

Did you do a build, by running npm start? The file will be added to the publish folder after that.

Dolphinsimon commented 5 years ago

Not yet. But I installed the package by 'npm install iot-solutions -g'. Do I need to run npm start? I just followed the steps in Deploy the Remote Monitoring solution accelerator using the CLI

sushilraje commented 5 years ago

This is a bug. Needs to be fixed.