React 血泪史
- 🏐🏐闻者伤心🏐🏐
- 🏉🏉见者落泪🏉🏉
- ⚽⚽启动失败⚽⚽
- 🏀🏀功亏一篑🏀🏀
- 1. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
- 2. TypeError: Class extends value undefined is not a constructor or null
- 3. Cannot read property 'createHash' of undefined
- 4. ./src/CSS/coreuiStyle.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!
- 5. 缺啥装啥
- 6. 补充知识
🏐🏐闻者伤心🏐🏐
🏉🏉见者落泪🏉🏉
⚽⚽启动失败⚽⚽
🏀🏀功亏一篑🏀🏀
- 使用cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org- 不行就换着试一下
npm config set registry http://r.cnpmjs.org/
npm config set registry https://registry.npmjs.org/
npm config set registry https://registry.npm.taobao.org
1. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
按照它的说法,在根目录创建文件.env
2. TypeError: Class extends value undefined is not a constructor or null
npm add webpack@4.1.0
3. Cannot read property ‘createHash’ of undefined
npm install webpack@^4.43.0 -D
4. ./src/CSS/coreuiStyle.scss (./node_modules/css-loader/dist/cjs.js??ref–5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref–5-oneOf-6-3!
npm uninstall node-sass
npm install node-sass@4.14.1 -D
5. 缺啥装啥
npm install xxxx -D
6. 补充知识
命令&参数的完整写法 | 简写 | 含义 |
---|---|---|
npm install xxx | npm i xxx | 本地安装xxx包 |
–global | -g | 全局安装,安装后可直接使用相应包里面提供的命令 |
–save | -S | 本地安装,安装版本写入package.json 的dependencies |
–save-dev | -D | 本地安装,安装版本写入package.json 的devDependencies |