yarn create & npx & npm init All In One
yarn create & npx & npm init All In One
https://www.npmtrends.com/npm-vs-npx-vs-yarn
demo
https://www.npmjs.com/package/create-react-app
$ yarn create react-app
$ npx create-react-app
$ npm init react-app
https://create-react-app.dev/docs/getting-started/#creating-an-app
yarn create
npm init
$ npm init
npx
$ npx
PM2
# global
$ pm2 start server/index.js
# local
$ ./node_modules/pm2/bin/pm2 start server/index.js
# npx 等价于 ./node_modules/pm2/bin/ ✅
$ npx pm2 start server/index.js
nodemon
# global
$ nodemon ./server.js
# local
$ ./node_modules/nodemon/bin/nodemon.js ./server.js
# npx 等价于 ./node_modules/nodemon/bin/ ✅
$ npx nodemon server.js
https://www.ruanyifeng.com/blog/2019/02/npx.html
css & dark theme
https://create-react-app.dev/docs/getting-started/#creating-an-app
refs
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/12547644.html
未经授权禁止转载,违者必究!