You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried this way. It doesn't work
| |
mengxj
|
|
邮箱:mengxj2113@163.com
|
Signature is customized by Netease Mail Master
On 09/26/2018 18:04, kateli wrote:
@m26597 先更新npm再试试
npm i -g npm
然后
npm set registry https://registry.npmjs.org/
rm -rf node_modules/
npm cache clean --force
npm cache verify
npm install
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
I am confused
| |
mengxj
|
|
邮箱:mengxj2113@163.com
|
Signature is customized by Netease Mail Master
On 09/26/2018 18:25, m26597 wrote:
I have tried this way. It doesn't work
| |
mengxj
|
|
邮箱:mengxj2113@163.com
|
Signature is customized by Netease Mail Master
On 09/26/2018 18:04, kateli wrote:
@m26597 先更新npm再试试
npm i -g npm
然后
npm set registry https://registry.npmjs.org/
rm -rf node_modules/
npm cache clean --force
npm cache verify
npm install
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Activity
chenshuai2144 commentedon Aug 24, 2018
目测是babel的问题
cnpm试一试
jinzita007 commentedon Aug 24, 2018
@chenshuai2144 第一种是使用cnpm命令行工具有报错了,但是第二种方式直接 clone git 仓库正常打开访问的,没有报错的。
dingzhenke commentedon Aug 28, 2018
我也遇到这种情况了,怎么解决?
shao7936626 commentedon Aug 28, 2018
我的情况和你一模一样呢
balancejia commentedon Aug 28, 2018
怎么解决
shao7936626 commentedon Aug 28, 2018
如果是测试,把项目删掉,重新Pro new新建项目,然后把项目中的node_modules文件删除,然后npm install PS:不要用cnpm
afc163 commentedon Aug 28, 2018
@dead-horse 看看?tnpm 和 cnpm 都有问题,npm 是好的,pro 的 master 下载下来 install 和 start 就能重现。
应该又是某个 babel 依赖模块不统一的问题,@sorrycc 看看能不能固定一下。
fish267 commentedon Aug 28, 2018
同上, 一样的问题.
cnpm tnpm 都有报错
ybning commentedon Aug 28, 2018
尝试使用npm安装,安装成功。但请求接口时,proxy失败:

@afc163
hunter36 commentedon Aug 28, 2018
同报这个错误,tnpm 报错,删掉node_modules用npm重装之后ok
zinkey commentedon Aug 28, 2018
修改 package.json 即可,作为暂时的方案:
cnpm:
tnpm:
37 remaining items
xuiwife commentedon Sep 26, 2018
@m26597 先更新npm再试试
npm i -g npm
然后
npm set registry https://registry.npmjs.org/
rm -rf node_modules/
npm cache clean --force
npm cache verify
npm install
m26597 commentedon Sep 26, 2018
m26597 commentedon Sep 26, 2018
1232209 commentedon Oct 5, 2018
这个问题貌似还没有比较好的解决方案,请大神出来解决一下
kalaersun commentedon Oct 7, 2018
注意红色的字 这个transform是专门给babel6的
7就安装下面的
{ "plugins": [ ["@babel/plugin-proposal-decorators", { "legacy": true }], ] }
这么写
npm install
就好了
还是要详细的看文档
chenguihua1005 commentedon Oct 27, 2018
遇到问题的朋友可以试下 roadhog@2.5.0-beta.1,亲自试了下可以解决这个问题。
[Bugfix]解决报错:The 'decorators' plugin requires a 'decoratorsBeforeExpo…
aleafo commentedon Dec 18, 2018
roadhog@2.5.0-beta.1 works for me.
m26597 commentedon Feb 18, 2019
在项目中使用roadhog@2.5.0-beta.1 测试版是不是八成要废啊,会有什么影响么@sorrycc
wteam-xq commentedon Feb 21, 2019
已解决:使用 cnpm 出现, 删除 node_modules 所有文件再使用 npm 重新安装依赖。
18011904 commentedon Mar 1, 2019
我也出现了这个问题,我用官方的脚手架生成的packa.json文件里面有@babel/core和babel-core都有,只需要把babel-core卸载就可以了,用npm un babel-core
guozhengzhongGit commentedon Mar 30, 2019
新入职公司,是用 pro 魔改的项目,里面还用什么 antd-bsc,升级以后也是报这个错误,采用上面@kateli的方法,删除了npm cache 以后,用 npm 安装就好了~
Renee98 commentedon Jan 10, 2020
@sorrycc
👍
lianglei-git commentedon Apr 20, 2021
z494627 commentedon Mar 24, 2022
删除node_modules
修改roadhog为 roadhog@2.5.0-beta.1@2.5.0-beta.1
npm i
解决