Npm run dev Times is wrong.

error occurred when running with npm run dev after migrating vue projects

the error is as follows

clipboard.png

Mar.23,2022

Don't you write that? callback must be a function


View the 129th line of the fs.js file:

callback must be a function

turns out to be a problem with the new version of node.js. Callback for fs.write above node v10 is required, and lowering the Node version can be solved. It is OK not to install node. You can modify the code in webpack.dev.config.js and webpack.prod.config.js: add the necessary callback function to fs.write by modifying the following code in the above two files:
fs.write (fd, buf, 0, buf.length, 0, function (err, written, buffer) {});

modify to:

fs.write (fd, buf, 0, 'utf-8', function (err, written, buffer) {});

answer reference:
author: yzj_xiaoyue
Source: CSDN
original text:

Previous: Can I open appimage or deb (executable) files in the docker container?

Next: An algorithm for finding the edges of all rings in a marked graph

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d22d-2b6d1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d22d-2b6d1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?