enzeberg/tonzhon-music

启动出错了

qianxiaofendou opened this issue · 1 comments

启动项目的时候报以下错误:

> cross-env NODE_ENV=development && node ./server/bin/www

internal/modules/cjs/loader.js:1102
      throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
      ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /Users/sunshiyong/Documents/workspace/demo/tonzhon-music/node_modules/node-fetch/src/index.js
require() of ES modules is not supported.

我的node版本:14.19.0

我试了一下14.16.0 和 12.16.0都不行,请问你是用的node版本是多少呢

推荐使用 tonzhon-lite 。