Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run dev 报错 npm run init也报错 #80

Open
SenvenStudent opened this issue Apr 30, 2019 · 4 comments
Open

npm run dev 报错 npm run init也报错 #80

SenvenStudent opened this issue Apr 30, 2019 · 4 comments

Comments

@SenvenStudent
Copy link

npm run dev 报错 npm run init也报错

@nowind
Copy link

nowind commented May 20, 2019

10+的nodejs对fs.write的回调函数改为必选,且第二个参数有string和buffer区分,而两个不同的参数导致参数个数不同,string的情况回调在第六个参数,buffer则是在第7个参数,虽然变量名字叫buffer,但是是string的。。改成Buffer.from(string)

@DuYueYu
Copy link

DuYueYu commented Oct 11, 2019

看好报错的文件位置,整句替换为:
fs.write(fd, buf, 0, 'utf-8', function(err, written, buffer) {});
确实是node版本的问题,也可以选择降低版本

@laozhujia
Copy link

就这么放着bug,没人维护了呀

@SenvenStudent
Copy link
Author

就这么放着bug,没人维护了呀

DuYueYu的好像是解决方案,没试过,有空了我试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants