iview-project
iview-project copied to clipboard
npm run init 报错
[email protected] init D:\projects\vue\iview-project webpack --progress --config webpack.dev.config.js
0% compilingfs.js:129 throw new ERR_INVALID_CALLBACK(); ^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:129:9)
at Object.write (fs.js:533:14)
at D:\projects\vue\iview-project\webpack.dev.config.js:10:8
at FSReqWrap.oncomplete (fs.js:141:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] init: webpack --progress --config webpack.dev.config.js
npm ERR! Exit status 1
+1 I guess iView is abandoned?
I solved it!You can try the following method: "webpack.dev.config.js" replace fs.write(fd, buf, 0, buf.length, 0, function (err, written, buffer){}); with fs.write(fd, buf, function(err, written, buffer) {});
I solved it!You can try the following method: "webpack.dev.config.js" replace fs.write(fd, buf, 0, buf.length, 0, function (err, written, buffer){}); with fs.write(fd, buf, function(err, written, buffer) {});
yes,it's very useful!! thank you.
I solved it!You can try the following method: "webpack.dev.config.js" replace fs.write(fd, buf, 0, buf.length, 0, function (err, written, buffer){}); with fs.write(fd, buf, function(err, written, buffer) {});
Thx!
@newbaner It works, Thx!
it s right zeze
I solved it!You can try the following method: "webpack.dev.config.js" replace fs.write(fd, buf, 0, buf.length, 0, function (err, written, buffer){}); with fs.write(fd, buf, function(err, written, buffer) {});
good job
You also do like this: file: webpack.dev.config.js change: fs.write(fd, buf, 0, buf.length, 0, function(err, written, buffer) {}); to fs.write(fd, buf, 0, 'utf-8', function(err, written, buffer) {});
Function fs.write with Node v10+ callback must be.
I solved it!You can try the following method: "webpack.dev.config.js" replace fs.write(fd, buf, 0, buf.length, 0, function (err, written, buffer){}); with fs.write(fd, buf, function(err, written, buffer) {});
good job man ! thanks ~.~
I solved it!You can try the following method: "webpack.dev.config.js" replace fs.write(fd, buf, 0, buf.length, 0, function (err, written, buffer){}); with fs.write(fd, buf, function(err, written, buffer) {});
Thanks~