Azure / azure-iot-explorer

Cross-platform UI for interacting with devices attached to Azure IoT Hub. This tool is meant for learning and testing, not for production environment.
MIT License
224 stars 71 forks source link

[BUG] Failed install package: miss matched file name package.json and package-lock.json in the repo #568

Closed SerenaAzsphere1 closed 1 year ago

SerenaAzsphere1 commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Following the instructions: azure-iot-explorer/README.md at main · Azure/azure-iot-explorer · GitHub
  2. Navigate to "Run it locally and build it yourself" -> Open a Node capable command prompt
  3. Clone the repo: git clone https://github.com/Azure/azure-iot-explorer.git
  4. Run: npm install

Expected behavior install package successfully, no error.

Actual result C:\Users\Serena>npm install npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\Serena/package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Serena\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Serena\AppData\Local\npm-cache_logs\2022-11-04T18_03_24_366Z-debug-0.log

Screenshots image

Checked the local folder 'C:\Users\Serena\, I found package-lock.json instead of package. json, ​manually change the package-lock.json to package. json, and run the npm install, no error, is this the expect behavior?

image

image

Desktop (please complete the following information):

YingXue commented 1 year ago

I don't think you are in the this project repo. After git clone, please cd into the folder and do npm install there.