cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

error with command "npm run setup-examples" in step 7 of 12,ThingWorx RPI Quickstart

xliu-31
1-Visitor

error with command "npm run setup-examples" in step 7 of 12,ThingWorx RPI Quickstart

npm-debug.log is pasted below.

0 info it worked if it ends with ok

1 verbose cli [ '/usr/local/bin/node',

1 verbose cli   '/usr/local/bin/npm',

1 verbose cli   'run',

1 verbose cli   'setup-examples' ]

2 info using npm@2.11.2

3 info using node@v0.12.6

4 verbose run-script [ 'presetup-examples', 'setup-examples', 'postsetup-examples' ]

5 info presetup-examples thingworx-agent-examples@0.0.1

6 verbose unsafe-perm in lifecycle true

7 info setup-examples thingworx-agent-examples@0.0.1

8 verbose unsafe-perm in lifecycle true

9 info thingworx-agent-examples@0.0.1 Failed to exec setup-examples script

10 verbose stack Error: thingworx-agent-examples@0.0.1 setup-examples: `node setup-examples.js`

10 verbose stack Exit status 1

10 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)

10 verbose stack     at EventEmitter.emit (events.js:110:17)

10 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)

10 verbose stack     at ChildProcess.emit (events.js:110:17)

10 verbose stack     at maybeClose (child_process.js:1015:16)

10 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

11 verbose pkgid thingworx-agent-examples@0.0.1

12 verbose cwd /home/pi/thingworx-nodejs-agent/thingworx-agent-examples

13 error Linux 4.4.11+

14 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "setup-examples"

15 error node v0.12.6

16 error npm  v2.11.2

17 error code ELIFECYCLE

18 error thingworx-agent-examples@0.0.1 setup-examples: `node setup-examples.js`

18 error Exit status 1

19 error Failed at the thingworx-agent-examples@0.0.1 setup-examples script 'node setup-examples.js'.

19 error This is most likely a problem with the thingworx-agent-examples package,

19 error not with npm itself.

19 error Tell the author that this fails on your system:

19 error     node setup-examples.js

19 error You can get their info via:

19 error     npm owner ls thingworx-agent-examples

19 error There is likely additional logging output above.

20 verbose exit [ 1, true ]

1 REPLY 1
rupadhyay
12-Amethyst
(To:xliu-31)

@xiong liu .

$ npm run setup-examples is  executed to install all the dependency packages. Here the example script is 'node-setup-examples.js is failing.

I would suggest deleting  the thingworx-nodejs-agent folder and its contents and try to download the thingworx-nodejs-agent afresh from .


Since , You are just starting, this suggestion is advisable and it will save lot of time.

Announcements


Top Tags