iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
591 stars 211 forks source link

Installation instructions #2221

Closed benjamin-lindsey closed 2 years ago

benjamin-lindsey commented 2 years ago

This tutorial did not work for me on Linux. Instead I followed the instructions on the npmjs website for @itwin/desktop-viewer-react. I would recommend adding the npm or yarn command for installation of the @itwin/desktop-viewer-react package before the npx command as that's what made the difference on my system. Not sure if this is an issue for other platforms like Windows.


⚠ Do not edit this section. It is required for imodeljs.github.io ➟ GitHub issue linking

aruniverse commented 2 years ago

Could you share the error you saw when you used the npx command?

I recommend uninstalling create-react-app, and reinstalling it again, then trying the npx command again.

npm uninstall -g create-react-app
npm install -g create-react-app
benjamin-lindsey commented 2 years ago

@aruniverse - Just tested your suggestion on a new VM. It worked! And now I can't get it to break again, even after uninstalling all global node packages and creating a new app. I'll take some time later to set up a fresh VM and send you the errors. Many thanks for the help.

aruniverse commented 2 years ago

Glad that worked, i'm guessing the real issue you saw stems from here, https://github.com/facebook/create-react-app/issues/10132#issue-749030789