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
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 发布文章使用:只允许注册用户才可以访问!