アーティクル - CS358656

ThingWorx Web コンポーネント チュートリアルで発生したエラー

修正日: 11-Nov-2024   


注記:ここに記載されている情報は、お客様の利便性向上のため機械翻訳ソフトを使用しています。PTCは、ここに記載されている情報の翻訳の正確性について、一切の責任を負いませんので、ご了承ください。英語の原文を参照するには、こちら。この機械翻訳に関する詳細は、こちら。
お知らせいただき、ありがとうございます。この機械翻訳をレビューします。

適用対象

  • ThingWorx Platform 8.5 to 9.3

説明

  • ThingWorx Web コンポーネント チュートリアルでエラーが発生する
  • Visual SDK でmub を実行するとエラーが発生します
  • 発生したエラー:
    • エラー 1:
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/twx-wc-sdk/ptcs-library.git
npm ERR! Warning: Permanently added 'github.com,140.82.114.3' (ECDSA) to the list of known hosts.
npm ERR! ERROR: Repository not found.
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.
    • エラー2:
$ mub
Starting series of gulp tasks for the wrapping...

exec error: Error: Command failed: gulp --e --wd /mnt/c/Users/ferti/GitHub/simple-el-widget
ReferenceError: primordials is not defined
    at fs.js:47:5
    at req_ (/mnt/c/Users/ferti/Downloads/twx-wc-sdk-utility/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/mnt/c/Users/ferti/Downloads/twx-wc-sdk-utility/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/mnt/c/Users/ferti/Downloads/twx-wc-sdk-utility/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    • エラー3:
$ mub
exec error: Error: Command failed: gulp --e --wd C:\Users\<USER>\Downloads\work\simple-el-widget -LLLL
'task_modifyPtcsMoment' errored after 676 μs
Error: ENOENT: no such file or directory, rename 
    • エラー4:
$ mub
Starting series of gulp tasks for the wrapping...

exec error: Error: Command failed: gulp --e --wd C:\Users\<USER>\Downloads\work\simple-el-widget
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\<USER>\node_modules\vinyl-paths\index.js from C:\Users\<USER>\Downloads\work\twx-wc-sdk-utility\gulpfile.js not supported.
Instead change the require of index.js in C:\Users\<USER>\Downloads\work\twx-wc-sdk-utility\gulpfile.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (C:\Users\<USER>\Downloads\work\twx-wc-sdk-utility\gulpfile.js:3:20)
    at async Promise.all (index 0) {
  code: 'ERR_REQUIRE_ESM'
}
    • エラー5:
 PS E:\simple-el-widget> mub Starting series of gulp tasks for the wrapping... exec error: Error: Command failed: gulp --e --wd E:\simple-el-widget [11:27:14] Local modules not found in E:\twx-wc-sdk-utility [11:27:14] Try running: npm install
最新バージョンはこちらを参照ください CS358656