[docs] npm vs Yarn confusion and onboarding
See original GitHub issuehttps://github.com/tauri-apps/tauri/wiki/04.-MS-Windows-Setup
The documentation makes it sound like tauri cannot function without Yarn, and that npm should not be used, which is completely backwards to everything in the Node.js ecosystem. Node ships with npm and only a small minority of projects use Yarn (let alone require it).
Further, for onboarding new users the ideal scenario would be:
- Install Node.js and npm
npm install -g @tauri/cli
tauri my-app-name
cd my-app-name && npm start
But my expectations are that it at least be:
- Install Node.js and npm
npm init -y
npm install --save-dev tauri
- Edit your
package.json
to point themain
toindex.html
- Create an
index.html
npx tauri .
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
NPM vs. Yarn: Which Package Manager Should You Choose?
We'll be comparing NPM vs. Yarn side by side so that you can make the right decision on the one to go for...
Read more >Detect and prevent dependency confusion attacks on npm to ...
Learn about dependency confusion attacks, how they manifest for ... are using npm or yarn, you are vulnerable to this supply chain attack....
Read more >What is the difference between yarn run and npm start?
It seems yarn run start is the equivalent of npm start , which runs the script inside the start field of the script...
Read more >Yarn vs npm: Everything You Need to Know - SitePoint
Yarn stands for Yet Another Resource Negotiator. The Yarn package manager is an alternative to npm, released by Facebook in October 2016. The ......
Read more >@splitmedialabs/devctl - npm
start docker-compose presets for easier onboarding and project switching; customize what to ... Node 8+; NPM or Yarn; Docker; Docker-Compose ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is basically what you already have but simplified where possible.
Build Tools for Visual Studio 2019
to match what the website you are linking to calls it so the user is not confused and knows to download the correct thing.npm install
similar to Windows-Build-Tools. So you don’t need to go to a website and do it manually.nodist
instead” which has a different API. Andnvm-windows
does not support anvm use latest
, though I created an issue requesting this feature.tauri-bundler
install. This seems like a pretty silly step for each user to have to do by hand just for a Hello World.Setup for Windows
Note: For those using the Windows Subsystem for Linux (WSL) please refer to our Linux specific instructions instead.
Prerequisites
Note: “Run” means to type a command into a Command Prompt or Powershell running with administrative privileges.
tauri build
.rustup update stable
cargo install tauri-bundler --force
Optional:
This gets you down to 3 global installs and 3 commands. But doesn’t actually get you all the way to a Hello world. there will be files and lines of code, and these are all OS Specific instructions. Though the Node and Rust stuff could probably be moved out to a non-OS specific section.
https://github.com/MicrosoftDocs/edge-developer/issues/723#issuecomment-638642445