Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置好相关环境后运行main.js出现语法错误 #3

Open
Ziyang-Bai opened this issue Aug 16, 2023 · 1 comment
Open

配置好相关环境后运行main.js出现语法错误 #3

Ziyang-Bai opened this issue Aug 16, 2023 · 1 comment

Comments

@Ziyang-Bai
Copy link

配置好相关环境后运行main.js出现语法错误
azureuser@1c1g:~/CSC-main-main$ npm install
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] license should be a valid SPDX license expression

added 1 package from 1 contributor and audited 1 package in 0.271s
found 0 vulnerabilities

azureuser@1c1g:~/CSC-main-main$ node main.js
file:///home/azureuser/CSC-main-main/hazel/module-loader.js:2
import { cpSync, mkdirSync, rmSync } from 'node:fs';
^^^^^^
SyntaxError: The requested module 'node:fs' does not provide an export named 'cpSync'
at ModuleJob._instantiate (internal/modules/esm/module_job.js:124:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:179:5)
at async Loader.import (internal/modules/esm/loader.js:178:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5)
at async handleMainPromise (internal/modules/run_main.js:59:12)

@Henrize
Copy link
Member

Henrize commented Sep 13, 2023

请升级到最新 LTS 版本运行十字街客户端,或者提供出现该问题的 Node.js 版本号。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants