xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2020-03-22 18:51  xgqfrms  阅读(609)  评论(6编辑  收藏  举报