You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
配置好相关环境后运行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)
The text was updated successfully, but these errors were encountered:
配置好相关环境后运行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)
The text was updated successfully, but these errors were encountered: