首页 > 其他分享 >no such file or directory .next/BUILD_ID

no such file or directory .next/BUILD_ID

时间:2024-01-23 10:58:26浏览次数:24  
标签:10 14 23 -- no alan next BUILD staff

  1. 报错内容
% npm start

> [email protected] start
> next start

   ▲ Next.js 14.1.0
   - Local:        http://localhost:3000

Error: ENOENT: no such file or directory, open '/Users/alan/github/pt-react/.next/BUILD_ID'
    at async open (node:internal/fs/promises:633:25)
    at async Object.readFile (node:internal/fs/promises:1242:14)
    at async setupFsCheck (/Users/alan/github/pt-react/node_modules/next/dist/server/lib/router-utils/filesystem.js:145:19)
    at async initialize (/Users/alan/github/pt-react/node_modules/next/dist/server/lib/router-server.js:58:23)
    at async Server.<anonymous> (/Users/alan/github/pt-react/node_modules/next/dist/server/lib/start-server.js:246:36) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/alan/github/pt-react/.next/BUILD_ID'
}
  1. 确认没有该目录文件
% ls -la
total 624
drwxr-xr-x   17 alan  staff     544  1 23 10:29 .
drwxr-xr-x   12 alan  staff     384  1 23 10:14 ..
-rw-r--r--    1 alan  staff      40  1 23 10:14 .eslintrc.json
drwxr-xr-x   12 alan  staff     384  1 23 10:17 .git
-rw-r--r--    1 alan  staff     391  1 23 10:14 .gitignore
-rw-r--r--    1 alan  staff    1383  1 23 10:14 README.md
-rw-r--r--    1 alan  staff     201  1 23 10:14 next-env.d.ts
-rw-r--r--    1 alan  staff      92  1 23 10:14 next.config.mjs
drwxr-xr-x  315 alan  staff   10080  1 23 10:29 node_modules
-rw-r--r--    1 alan  staff  158123  1 23 10:15 package-lock.json
-rw-r--r--    1 alan  staff     549  1 23 10:14 package.json
-rw-r--r--    1 alan  staff      83  1 23 10:14 postcss.config.js
drwxr-xr-x    4 alan  staff     128  1 23 10:14 public
drwxr-xr-x    3 alan  staff      96  1 23 10:14 src
-rw-r--r--    1 alan  staff     510  1 23 10:14 tailwind.config.ts
-rw-r--r--    1 alan  staff     578  1 23 10:14 tsconfig.json
-rw-r--r--    1 alan  staff  120822  1 23 10:29 yarn.lock
  1. 查看 README.md 文档,更改启动命令
% npm run dev

> [email protected] dev
> next dev

   ▲ Next.js 14.1.0
   - Local:        http://localhost:3000

 ✓ Ready in 4.3s

标签:10,14,23,--,no,alan,next,BUILD,staff
From: https://www.cnblogs.com/chenxinjie/p/17981837

相关文章

  • hnswlib-node window中安装的几个报错
    gyp:C:\Users\Administrator\AppData\Local\node-gyp\Cache\18.12.1\common.gypinotfound(cwd:F:\langchain\node_modules.pnpm\hnswlib-node安装python3大概率python没安装或者python环境变量没配对确认python3.9以上版本是否安装和系统环境变量配置解决方案:如果系统......
  • NOI2018 你的名字。
    您的名字。做法好像和其他题解不太一样。空间少个\(\log\),而且常数小。description给定长度为\(n\)的字符串\(S\)。\(Q\)次询问,第\(t\)次给定字符串\(T_t\)以及正整数\(l,r\in[1,n]\)。每次询问回答\(T_t\)有几个本质不同子串在\(S_{l\dotsr}\)中没有出现过......
  • 【OpenVINO】基于 OpenVINO C# API 部署 RT-DETR 模型
     RT-DETR是在DETR模型基础上进行改进的,一种基于DETR架构的实时端到端检测器,它通过使用一系列新的技术和算法,实现了更高效的训练和推理,在前文我们发表了《基于OpenVINO™PythonAPI部署RT-DETR模型|开发者实战》和《基于OpenVINO™C++API部署RT-DETR模型|开发......
  • P1125 [NOIP2008 提高组] 笨小猴
    1.题目介绍[NOIP2008提高组]笨小猴题目描述笨小猴的词汇量很小,所以每次做英语选择题的时候都很头疼。但是他找到了一种方法,经试验证明,用这种方法去选择选项的时候选对的几率非常大!这种方法的具体描述如下:假设\(\text{maxn}\)是单词中出现次数最多的字母的出现次数,\(\text{......
  • STL-map/unordered_map映射
    STL-map/unordered_map映射目录STL-map/unordered_map映射1.构造初始化2.数据插入3.数据查找4.迭代器遍历5.删除和清空6.成员方法7.multimap8.unordered_map9.unordered_multimap10.底层原理11.总结12.参考资料键值对容器Map映射是一种类似于字典的数据结构。它是(键,值)对的序......
  • 搭建RAC时报错Cannot verify the shared state for device /dev/asm-diskd due to Uni
    问题描述:搭建RAC时报错Cannotverifythesharedstatefordevice/dev/asm-diskdduetoUniversallyUniqueIdentifiers(UUIDs)notbeingfound......,如下所示:系统:rhel7.964位数据库:19c1、异常重现详细告警日志:ASMdevicesharednesscheck-Thischeckverifiesthe......
  • P10061 [SNOI2024] 矩阵
    原题链接考虑记录每个元素相邻的四个元素,发现每次旋转只会影响最周围一圈的点与旁边一圈点的连接,所以考虑十字链表维护,单次操作\(O(n)\)可以接受。矩阵加怎么做,我们还是采用上述的思路,在维护元素相邻的时候维护相邻两个元素的差值,这样可以\(O(n)\)矩阵加,因为还是只对最周围......
  • sudo: unable to resolve host xxxx: Name or service not known
    前言在Linux环境中,我使用sudo执行命令,发生报错:sudo:unabletoresolvehostxxxx:Nameorservicenotknown解决这个错误通常发生在更改主机名后,使用sudo命令时出现问题。sudo命令会尝试解析主机名,但如果无法解析,就会出现"sudo:unabletoresolvehost"的错误。然而......
  • P10060 [SNOI2024] 树 V 图
    原题链接首先想到\(f\)值相同的点一定构成一个连通块,所以应当有\(k\)个连通块并且每个连通块\(f\)值互不相同。判断一下\([1,k]\)是否在\(f\)中都出现过,并且是否有\(k-1\)条边两个端点的\(f\)值不同,若有不符合的就是非法输入,直接输出\(0\)。考虑\(k=2\)的部分......
  • 将jupyter notebook通过nginx代理
    最近要学习数据分析,就需要一个jupyternotebook环境,由于不想在公司和家里的环境来回切换,正好有台公网服务器,就将jupyternotebook部署到服务器上,然后通过nginx代理处理。期间踩了好多坑,现记录如下。一、安装jupyternotebookpip3installjupyter二、配置jupyter1、配置......