Hello, I have been trying to install Google Cloud SDK and have run into some issues that I cannot seem to rectify. I have placed the list of operations below and their outcome to help with the explanation.
Steps 1,2 & 3. run successfully
Step 4. Clone this repo: git clone https://github.com/kwnevarez/particle-device-locator
fatal: destination path βparticle-device-locatorβ already exists and is not an empty directory.
Step 5. Ran successful
Step 6. Run the sample with npm: npm start
This is where it goes awryβ¦
Step 7. Visit the application at http://localhost:8080 .
I have researched the web for solutions for a few days but am not getting any resolution. Does anyone have an idea how to fix this mess?
Thank you,
You should change the Thread-category from βTutorialsβ to βTroubleshootingβ. It seems more for an technical issue. I suggest that you should describe your context more in detail and put in screenshots. Good luck.
Hello @Postler many thanks for the recommendation. I will definitely do that. Iβve got a lot to learn here!
You probably need to cd into the particle-device-locator directory. It looks like youβre at the top level of your home directory, you have to issue the npm start in the top level of the downloaded repository where package.json is.
HI @rickkas7 , I think the file is in the home directory of zeytin though. Is this not correct? Below I have placed the files under that directory. It may be a mess because Iβve been a lot of strange stuff from various other forums.
KyleG
July 28, 2017, 4:39pm
6
@ScruffR do you have experience here or know someone who does?
@Clifton , I agree with @rickkas7 that you need to cd to the particle-device-locator
directory and then run npm install
and npm start
. The file in the home directory is not the correct one.
2 Likes
Hi @peekay123 and @rickkas7 ,
Ok so I have cd to the correct folder and have successfully (I believe) installed the package. I do run into some problems when I run npm start
. I have placed the terminal info below. What do you guys think and thank you again for your patience.
cliftons-brain:~ Zeytin$ npm install
cliftons-brain:~ Zeytin$ npm start
npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! missing script: start
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Zeytin/npm-debug.log
cliftons-brain:~ Zeytin$ cd users/Zeytin/particle-device-locator
-bash: cd: users/Zeytin/particle-device-locator: No such file or directory
cliftons-brain:~ Zeytin$ cd particle-device-locator/
cliftons-brain:particle-device-locator Zeytin$ npm install
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> ../../../ie8-polyfill.js
Locator@0.1.0 /Users/Zeytin/particle-device-locator
βββ¬ body-parser@1.17.2
β βββ bytes@2.4.0
β βββ content-type@1.0.2
β βββ¬ debug@2.6.7
β β βββ ms@2.0.0
β βββ depd@1.1.1
β βββ¬ http-errors@1.6.1
β β βββ depd@1.1.0
β β βββ inherits@2.0.3
β βββ iconv-lite@0.4.15
β βββ¬ on-finished@2.3.0
β β βββ ee-first@1.1.1
β βββ qs@6.4.0
β βββ¬ raw-body@2.2.0
β β βββ unpipe@1.0.0
β βββ¬ type-is@1.6.15
β βββ media-typer@0.3.0
βββ ejs@2.5.7
βββ¬ express@4.15.3
β βββ¬ accepts@1.3.3
β β βββ negotiator@0.6.1
β βββ array-flatten@1.1.1
β βββ content-disposition@0.5.2
β βββ cookie@0.3.1
β βββ cookie-signature@1.0.6
β βββ encodeurl@1.0.1
β βββ escape-html@1.0.3
β βββ etag@1.8.0
β βββ finalhandler@1.0.3
β βββ fresh@0.5.0
β βββ merge-descriptors@1.0.1
β βββ methods@1.1.2
β βββ parseurl@1.3.1
β βββ path-to-regexp@0.1.7
β βββ¬ proxy-addr@1.1.5
β β βββ forwarded@0.1.0
β β βββ ipaddr.js@1.4.0
β βββ range-parser@1.2.0
β βββ¬ send@0.15.3
β β βββ destroy@1.0.4
β β βββ mime@1.3.4
β βββ serve-static@1.12.3
β βββ setprototypeof@1.0.3
β βββ statuses@1.3.1
β βββ utils-merge@1.0.0
β βββ vary@1.1.1
βββ¬ express-session@1.15.4
β βββ crc@3.4.4
β βββ debug@2.6.8
β βββ on-headers@1.0.1
β βββ¬ uid-safe@2.1.4
β βββ random-bytes@1.0.0
βββ¬ express-ws@3.0.0
β βββ¬ ws@2.3.1
β βββ ultron@1.1.0
βββ¬ particle-api-js@6.5.0
β βββ¬ babel-runtime@6.25.0
β β βββ core-js@2.4.1
β β βββ regenerator-runtime@0.10.5
β βββ¬ form-data@1.0.0-rc4
β β βββ async@1.5.2
β βββ¬ stream-http@2.2.1
β β βββ builtin-status-codes@2.0.0
β β βββ to-arraybuffer@1.0.1
β β βββ xtend@4.0.1
β βββ¬ superagent@2.3.0
β β βββ component-emitter@1.2.1
β β βββ cookiejar@2.1.1
β β βββ formidable@1.1.1
β β βββ¬ readable-stream@2.3.3
β β βββ core-util-is@1.0.2
β β βββ isarray@1.0.0
β β βββ process-nextick-args@1.0.7
β β βββ safe-buffer@5.1.1
β β βββ¬ string_decoder@1.0.3
β β β βββ safe-buffer@5.1.1
β β βββ util-deprecate@1.0.2
β βββ superagent-prefix@0.0.2
βββ¬ request@2.81.0
βββ aws-sign2@0.6.0
βββ aws4@1.6.0
βββ caseless@0.12.0
βββ¬ combined-stream@1.0.5
β βββ delayed-stream@1.0.0
βββ extend@3.0.1
βββ forever-agent@0.6.1
βββ¬ form-data@2.1.4
β βββ asynckit@0.4.0
βββ¬ har-validator@4.2.1
β βββ¬ ajv@4.11.8
β β βββ co@4.6.0
β β βββ¬ json-stable-stringify@1.0.1
β β βββ jsonify@0.0.0
β βββ har-schema@1.0.5
βββ¬ hawk@3.1.3
β βββ boom@2.10.1
β βββ cryptiles@2.0.5
β βββ hoek@2.16.3
β βββ sntp@1.0.9
βββ¬ http-signature@1.1.1
β βββ assert-plus@0.2.0
β βββ¬ jsprim@1.4.0
β β βββ assert-plus@1.0.0
β β βββ extsprintf@1.0.2
β β βββ json-schema@0.2.3
β β βββ verror@1.3.6
β βββ¬ sshpk@1.13.1
β βββ asn1@0.2.3
β βββ assert-plus@1.0.0
β βββ bcrypt-pbkdf@1.0.1
β βββ¬ dashdash@1.14.1
β β βββ assert-plus@1.0.0
β βββ ecc-jsbn@0.1.1
β βββ¬ getpass@0.1.7
β β βββ assert-plus@1.0.0
β βββ jsbn@0.1.1
β βββ tweetnacl@0.14.5
βββ is-typedarray@1.0.0
βββ isstream@0.1.2
βββ json-stringify-safe@5.0.1
βββ¬ mime-types@2.1.16
β βββ mime-db@1.29.0
βββ oauth-sign@0.8.2
βββ performance-now@0.2.0
βββ safe-buffer@5.0.1
βββ stringstream@0.0.5
βββ¬ tough-cookie@2.3.2
β βββ punycode@1.4.1
βββ tunnel-agent@0.6.0
βββ uuid@3.1.0
cliftons-brain:particle-device-locator Zeytin$ npm start
Locator@0.1.0 start /Users/Zeytin/particle-device-locator
node app.js
Websocket server listening on port 50051
App listening on port 8080
Press Ctrl+C to quit.
Logging in
Logging in
logged in. Getting event stream
Got event stream.
Error while talking to metadata server, assuming localhost
External IP: localhost