Skip to main content
14-Alexandrite
June 30, 2020
Solved

Thingworx - Web Component Development (Guidelines)

  • June 30, 2020
  • 2 replies
  • 2450 views

Hello everybody,

 

has anybody successfully tried the "new" way of developing thingworx extensions based on the twx_wc_sdk?

I followed this guide (http://support.ptc.com/help/thingworx_hc/visual_sdk/) up to the step:

npm install twx-wc-sdk/ptcs-library

This gives me an error:

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/twx-wc-sdk/ptcs-library.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

Seem the repository at github is not valid.

 

Greetings

 

Andreas

 

Best answer by CharlesJi

Hi @atondorf, seems like you didn't download the SDK files and put them into the twx-wc-sdk folder of your project directory.

 

You can find the SDK zip file now from PTC Software Download > ThingWorx Foundation 9.0 > ThingWorx Web Component SDK Library. (I think the zip name has been updated from the previous one ThingWorx Visual SDK)

 

Then you extract the content of MED-61348-CD-090_F000_WEB-Component-SDK-Library.zip to the twx-wc-sdk folder of your project directory (e.g., c:\<your_project>\twx-wc-sdk\).

 

After that, try the following command in the root path of your project (e.g., c:\<your_project>\):

npm install twx-wc-sdk/ptcs-library

2 replies

16-Pearl
July 7, 2020

Note: error happen when perform below section.

http://support.ptc.com/help/thingworx_hc/visual_sdk/#download-and-installation

Getting Started

Download and Installation

npm install twx-wc-sdk/ptcs-library

 

12-Amethyst
July 7, 2020

Hi @wcui 

 

‘’Seems the project structure is wrong. Please confirm that in your project folder you have twx-wc-sdk­ folder and inside of it you have all ptcs components (ptcs components are the content of the zip file). npm install should be run from the project folder as well”.

 

Thanks,

Avihu.

CharlesJiCommunity ManagerAnswer
Support
August 10, 2020

Hi @atondorf, seems like you didn't download the SDK files and put them into the twx-wc-sdk folder of your project directory.

 

You can find the SDK zip file now from PTC Software Download > ThingWorx Foundation 9.0 > ThingWorx Web Component SDK Library. (I think the zip name has been updated from the previous one ThingWorx Visual SDK)

 

Then you extract the content of MED-61348-CD-090_F000_WEB-Component-SDK-Library.zip to the twx-wc-sdk folder of your project directory (e.g., c:\<your_project>\twx-wc-sdk\).

 

After that, try the following command in the root path of your project (e.g., c:\<your_project>\):

npm install twx-wc-sdk/ptcs-library