geeker-admin 安装失败记和解决方法

geekeradmin 运行 出错了,刚下载的版本,不能跑起来。cnpm i 安装了依赖包后。

Cannot find module ‘D:\react\Geeker-Admin-master\node_modules\has\src’. Please verify that the package.json has a valid “main” entry
Failed at the [email protected] dev script.

failed to load config from vite.config.ts error when starting dev server:
failed to load config from D:\react\Geeker-Admin-master\vite.config.ts error when starting dev server: Error: Cannot find module ‘node:path’
gnvm install 16

Specifically the “esbuild-windows-64” package is present but this platform n

Cannot find module ‘@vitejs/plugin-vue’

在用npm start运行admin-client_final项目时,出现下面的错误:

解决办法:

1).将admin-client_final项目根目录下的node_modules删除

2).用npm cache clean --force命令清除npm缓存

3).运行npm install重新安装项目所需依赖

按照上面的步骤操作完,再运行npm start,项目就可以正常跑起来了,以后再出现类似Cannot find module问题,都可用上面的步骤解决。

后来原来是node版本的问题根据多个结果。

解决,升级了 node 为16.0后

把 node_modules 和package_lock.json删除,重新运行npm i 安装完后解决了。

你可能感兴趣的:(vue.js,javascript,前端)