赞
踩
运行npm install 时,卡在sill install loadAllDepsIntoIdealTree不动
查了半天,下面这条命令并不能解决我的问题
npm set registry http://registry.npmjs.org/
镜像地址没有变化,
又尝试了一下
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
added 360 packages in 41s
11 packages are looking for funding
run `npm fund` for details
依旧是无效
npm 淘宝镜像配置一直无效
查看了.npmrc文件
需要将上面这些全部换成:
registry=https://registry.npm.taobao.org/
参考的这篇文章:
https://gist.github.com/52cik/c1de8926e20971f415dd
完犊子,保存后 npm install出一堆ERR
npm install
又换回来了QAQ
什么玩意
执行npm install又变成了
$ npm start
> cross-env APP_TYPE=site umi dev --port=8009
'cross-env' is not recognized as an internal or external command,
operable program or batch file.
查了一下说是依赖的问题:
$ npm install -save-dev cross-env
试了没反应
$ npm install cross-env --save-dev
试了没反应
还没解决
绕晕了,本来就是依赖的问题,
解决了npm install 没反应,到npm install ERR 版本问题。
尝试降低
npm info react
npm uninstall react react-dom
npm install react
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。