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: Docker creates two bridges within the host. Why the containers in the two bridges cannot ping each other. How to set up so that they can ping each other?

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-1ea26fd-1bd8.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-1ea26fd-1bd8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?