Quick Start Project for iTwin Web Viewer (Org Blocks Script Execution) #127
|
I'm trying to get started with the iTwin Web Viewer using the @itwin/web-viewer template, but my organization has disabled PowerShell script execution, which blocks npx commands. |
Replies: 1 comment 2 replies
|
Hi, You should use the new vite Viewer template rather than the create react app version linked in that tutorial. (We will update that information.) That doesn't get you past npx in powershell, however. Are all terminals disallowing npx commands (cmd, windows terminal using gitbash, for instance)? If it is only npx commands that are blocked, you can attempt to install degit globally with If none of the above works, you can try using a cloud environment like GitHub Codespaces, Code Sandbox, or another cloud IDE like Stackblitz. |
Hi,
You should use the new vite Viewer template rather than the create react app version linked in that tutorial. (We will update that information.)
That doesn't get you past npx in powershell, however. Are all terminals disallowing npx commands (cmd, windows terminal using gitbash, for instance)?
If it is only npx commands that are blocked, you can attempt to install degit globally with
pnpm install -g degitand then provision the template:degit iTwin/viewer/packages/templates/web#master my-app-nameIf none of the above works, you can try using a cloud environment like GitHub Codespaces, Code Sandbox, or another cloud IDE like Stackblitz.