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

Resolve npm run dev and npm run build error 解决编译和发布时出错信息 #84

Open
duoduodady opened this issue Sep 7, 2019 · 0 comments

Comments

@duoduodady
Copy link

image

How to resolve the error when you debug or build the project? Please look and do as the follows

  1. Open your File Folder:iview-project-3.0
  2. Check two files : webpack.dev.config.js, webpack.prod.config.js
  3. Open the files with vscode ,or nodepad
  4. please attention the line 11, as the follows:
    _fs.write(fd, buf, 0, buf.length, 0, function (err, written, buffer){});_

Comment out the code,Add new code as the follows
fs.write(fd, buf, function(err, written, buffer) {});

image

  1. Save the files
  2. Now, you can try to npm run dev or npm run build
@duoduodady duoduodady changed the title Resolve npm run dev and npm run build error Resolve npm run dev and npm run build error 解决编译和发布时出错信息 Sep 7, 2019
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

1 participant