首页 > 解决方案 > npm run build 不工作:错误:找不到模块'sharp'

问题描述

startd-theme@1.0.0 构建

下一个构建

Browserslist:caniuse-lite 已过时。请运行:npx browserslist@latest --update-db

为什么你应该定期这样做: https ://github.com/browserslist/browserslist#browsers-data-updating (node:34672) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module /Users/vedant/Documents/nextmet/node_modules/next/node_modules/postcss/package.json 中的包解析。更新此 package.json 以使用类似“./*”的子路径模式。(node --trace-deprecation ...用于显示警告的创建位置)

发生构建错误错误:找不到模块'sharp'需要堆栈:

标签: javascriptnode.jsreactjsnpm

解决方案


推荐阅读