切换node版本解决如下错误(建议使用nvm管理node版本)

failed to load config from C:\Users\86185\Desktop\App\鼎维\ly-dev1111\application\frontend\user-pc\vite.config.ts
error when starting dev server:
Error: Cannot find module 'node:path'
Require stack:
- C:\Users\86185\Desktop\App\ly-dev1111\application\frontend\user-pc\node_modules\vite\dist\node-cjs\publicUtils.cjs
- C:\Users\86185\Desktop\App\ly-dev1111\application\frontend\user-pc\node_modules\vite\index.cjs
- C:\Users\86185\Desktop\ly-dev1111\application\frontend\user-pc\vite.config.ts
- C:\Users\86185\Desktop\ly-dev1111\application\frontend\user-pc\node_modules\vite\dist\node\chunks\dep-4da11a5e.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (C:\Users\86185\Desktop\App\ly-dev1111\application\frontend\user-pc\node_modules\vite\dist\node-cjs\publicUtils.cjs:5:14)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Object._require.extensions.<computed> [as .js] (file:///C:/Users/86185/Desktop/App/%E9%BC%8E%E7%BB%B4/ly-dev1111/application/frontend/user-pc/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:63540:17)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
 ELIFECYCLE  Command failed with exit code 1.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值