Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Issue installing IoT Edge samples (Javascript) on Windows and LInux #29

Closed
ksaye opened this issue Jun 28, 2017 · 2 comments
Closed

Issue installing IoT Edge samples (Javascript) on Windows and LInux #29

ksaye opened this issue Jun 28, 2017 · 2 comments

Comments

@ksaye
Copy link

ksaye commented Jun 28, 2017

I am following: https://github.com/Azure-Samples/iot-edge-samples.

On windows I am getting:

`C:\Users\kevinsay\Desktop>mkdir gateway

C:\Users\kevinsay\Desktop>cd gateway

C:\Users\kevinsay\Desktop\gateway> git clone https://github.com/Azure-Samples/iot-edge-samples.git
Cloning into 'iot-edge-samples'...
remote: Counting objects: 590, done.
remote: Compressing objects: 100% (175/175), done.
Receiving objects: 91% (537/590) d 219 (delta 66), pack-reused 328
Receiving objects: 100% (590/590), 553.60 KiB | 0 bytes/s, done.
Resolving deltas: 100% (249/249), done.

C:\Users\kevinsay\Desktop\gateway>cd iot-edge-samples

C:\Users\kevinsay\Desktop\gateway\iot-edge-samples>npm install
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\kevinsay\Desktop\gateway\iot-edge-samples\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\kevinsay\Desktop\gateway\iot-edge-samples\package.json'
npm WARN iot-edge-samples No description
npm WARN iot-edge-samples No repository field.
npm WARN iot-edge-samples No README data
npm WARN iot-edge-samples No license field.

up to date in 0.112s

C:\Users\kevinsay\Desktop\gateway\iot-edge-samples>npm run local
npm ERR! path C:\Users\kevinsay\Desktop\gateway\iot-edge-samples\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\kevinsay\Desktop\gateway\iot-edge-samples\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\kevinsay\AppData\Roaming\npm-cache_logs\2017-06-28T20_11_27_777Z-debug.log

C:\Users\kevinsay\Desktop\gateway\iot-edge-samples>`

On Ubuntu I am getting:

`kevinsay@kevinsayUbunto:$ git clone https://github.com/Azure-Samples/iot-edge-samples.git
Cloning into 'iot-edge-samples'...
remote: Counting objects: 590, done.
remote: Compressing objects: 100% (175/175), done.
remote: Total 590 (delta 103), reused 219 (delta 66), pack-reused 328
Receiving objects: 100% (590/590), 553.21 KiB | 0 bytes/s, done.
Resolving deltas: 100% (249/249), done.
Checking connectivity... done.
kevinsay@kevinsayUbunto:
$ cd iot-edge-samples/
kevinsay@kevinsayUbunto:/iot-edge-samples$ npm install
npm WARN enoent ENOENT: no such file or directory, open '/home/kevinsay/iot-edge-samples/package.json'
npm WARN iot-edge-samples No description
npm WARN iot-edge-samples No repository field.
npm WARN iot-edge-samples No README data
npm WARN iot-edge-samples No license field.
kevinsay@kevinsayUbunto:
/iot-edge-samples$ npm run local
npm ERR! Linux 4.4.0-81-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "local"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /home/kevinsay/iot-edge-samples/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/home/kevinsay/iot-edge-samples/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/home/kevinsay/iot-edge-samples/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /home/kevinsay/iot-edge-samples/npm-debug.log
kevinsay@kevinsayUbunto:~/iot-edge-samples$
Doc1.docx
`

What am I missing?

@WodansSon
Copy link
Contributor

WodansSon commented Jun 29, 2017 via email

@ksaye
Copy link
Author

ksaye commented Jun 29, 2017

that was it, thanks!

@ksaye ksaye closed this as completed Jun 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants