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