审核中~
溜忙之道
首页
溜忙手册
offer之道
项目Git
写文章
登录
·
注册
登录
没有账号,去注册
注册
已有账号,去登录
博客
nextjs报错Error: EEXIST: file already exists
南易_站长
阅读量:21379
关注
nextjs报错Error: EEXIST: file already exists
今天copy了同事用nextjs导出的静态页面的代码,本地编译执行都很正常,可是提交到服务器自动便已打包的时候,一直报下面这个错误。 ``` Build error occurred { [Error: EEXIST: file already exists, mkdir '/home/dev/repos/covid-tutoring/.next'] errno: -17, code: 'EEXIST', syscall: 'mkdir', path: '/home/dev/repos/covid-tutoring/.next' } ``` #### 原因 nextjs的9+的版本需要node的最低版本为10.13,要不然出现上面的错误。 #### 解决 使用nvm升级node版本到10.20.1,解决问题。 #### 参考 https://github.com/zeit/next.js/issues/11601 ———————————————— 版权声明:本文为CSDN博主「照物华」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/daihaoxin/article/details/105548095
评论
表情
发送
0
评论