Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
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
Solved! Go to Solution.
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
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
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.
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