qq_51603984 2022-04-01 17:41 采纳率: 0%
浏览 83
已结题

node用npm命令安装依赖和启动项目都会报错,从新拉取代码也一样报错

node用npm命令安装依赖和启动项目都会报错,从新拉取代码也一样报错,删除mode_modules包再用npm install 报错,用cnpm安装也一样报错。
问题相关代码,请勿粘贴截图
Administrator@MS-KLPESEFQMSZF MINGW64 ~/Desktop/insurance-official (v1.2)
$ npm run dev
(node:2372) UnhandledPromiseRejectionWarning: Error: EIO: i/o error, read
    at Object.readSync (fs.js:617:3)
    at tryReadSync (fs.js:382:20)
    at Object.readFileSync (fs.js:411:19)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1112:18)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\chalk\source\index.js:7:5)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2372) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:2372) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Administrator@MS-KLPESEFQMSZF MINGW64 ~/Desktop/insurance-official (v1.2)
$ npm i
(node:14612) UnhandledPromiseRejectionWarning: Error: EIO: i/o error, read
    at Object.readSync (fs.js:617:3)
    at tryReadSync (fs.js:382:20)
    at Object.readFileSync (fs.js:411:19)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1112:18)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\chalk\source\index.js:7:5)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:14612) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:14612) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

我的解答思路和尝试过的方法
我想要达到的结果



  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 4月9日
    • 修改了问题 4月1日
    • 创建了问题 4月1日

    悬赏问题

    • ¥15 本人本科机械,目前研一。没有深度学习基础,目前对研究生课题一片迷茫,请教各位!
    • ¥15 关于R语言单因素与多因素线性回归的平均值
    • ¥15 服务器清除BIOS之后引导不了
    • ¥15 CPLEX用OPL编写的混合整数线性优化问题。
    • ¥15 可以用EasyConnect连接实验室内网,但无法连接内网才能访问的服务器,为什么?
    • ¥15 前端预览docx文件,文件从后端传送过来。
    • ¥15 层次聚类和蛋白质相似度
    • ¥25 主成分分析中的第一第二主成分分别代表哪些参数
    • ¥15 oracle数据库查询语句问题
    • ¥15 有没有c++绘制算法的佬们吗救孩一下