npm init & npx create & yarn create_nvm

npm init & npx create & nrm

yarn nvm, nrm



npm init & npx create & yarn create

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

npm init & npx create & yarn create_npx_02

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>`)


npm init & npx create & yarn create_nvm_03

# 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 源(企业内部的私有源)

npm init & npx create & yarn create_npm_04

npm init & npx create & yarn create_npx_05

shit cnpm

# shit taobao


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

nvm

javascript:void(0)

# node version manage


CORS policy

Access to XMLHttpRequest at 'javascript:void(0)' from origin 'javascript:void(0)' 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 发布文章使用:只允许注册用户才可以访问!



xgqfrms