npm init & npx create & yarn create


npm init & npx create & yarn create

https://create-react-app.dev/docs/getting-started/#creating-an-app

npm init

https://docs.npmjs.com/cli/init

$ npm init [--force|-f|--yes|-y|--scope]

$ npm init <@scope> (same as `npx <@scope>/create`)

$ npm init [<@scope>/]<name> (same as `npx [<@scope>/]create-<name>`)

# create-react-app

$ npm init react-app

$ npx create-react-app

# create-egg

$ npm init egg --type=simple

$ npx create-egg --type=simple

yarn creat

$ yarn create  create-app app

https://create-react-app.dev/docs/getting-started/#yarn

nrm

https://github.com/Pana/nrm

how to change npm registry

$ npm i -g nrm

$ nrm ls

https://www.npmjs.com/package/nrm

nrm 是一个 NPM 源管理器,允许你快速地切换 NPM 源(企业内部的私有源)

shit cnpm

# shit taobao

https://programmer.help/blogs/npm-nrm-and-nvm-in-mac.html

nvm

https://www.cnblogs.com/xgqfrms/p/10825908.html

# node version manage


CORS policy

Access to XMLHttpRequest at 'https://upload.cnblogs.com/imageuploader/CorsUpload' from origin 'https://i-beta.cnblogs.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM