iview错误提示npm ERR! code ELIFECYCLE(解决)

news/2024/7/10 2:08:57 标签: vue, python

错误提示

在这里插入图片描述

> iview-project@3.0.0 dev D:\zhu_work\vscode\communication\iview-project-3.0
> webpack-dev-server --content-base ./ --open --inline --hot --compress --history-api-fallback --config webpack.dev.config.js

fs.js:143
  throw new ERR_INVALID_CALLBACK(cb);
  ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received 29
    at maybeCallback (fs.js:143:9)
    at D:\zhu_work\vscode\communication\iview-project-3.0\webpack.dev.config.js:10:8
    at FSReqCallback.oncomplete (fs.js:154:23) {
  code: 'ERR_INVALID_CALLBACK'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! iview-project@3.0.0 dev: `webpack-dev-server --content-base ./ --open --inline --hot --compress --history-api-fallback --config webpack.dev.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iview-project@3.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-08-06T07_49_37_959Z-debug.log

解决方法

  • 1 找到这个文件在这里插入图片描述
  • 2 替换
//fs.write(fd, buf, 0, buf.length, 0, function(err, written, buffer) {});
fs.write(fd, buf, 0, 'utf-8', function(err, written, buffer) {});

在这里插入图片描述


http://www.niftyadmin.cn/n/1832393.html

相关文章

NSArray基础数组的排序

#import <Foundation/Foundation.h>2 3 int main(int argc, const char * argv[]) {4 autoreleasepool {5 //数组内元素排序6 NSArray *arr1["mon","tue","wed","thu","fri","sat",&qu…

大数据环境下的磁盘脚本思考和实现

需求&#xff1a;考虑一种场景&#xff0c;譬如hdfs中的存储节点(datanode)所需的磁盘&#xff0c;当集群规模变大&#xff0c;假设每个节点有20块盘&#xff0c;集群有200个节点&#xff0c;那么实际物理磁盘为4000块&#xff1b;假设磁盘年故障率为1%&#xff0c;那么&#x…

CentOS 加载/挂载 U盘 (转)

原文链接&#xff1a;CentOS 加载/挂载 U盘 Linux如何加载(优)U盘 1&#xff0c;以root用户登陆 先加载USB模块 modprobe usb-storage 用fdisk -l 看看U盘的设备 假如U盘是sda1 2&#xff0c;确定在 目录 /mnt 下建立了 文件夹 /usb,如果未建立可键入一下命令&…

分析自定义view的实现过程-实现雪花飞舞效果(转载有改动)

http://www.cnblogs.com/jww-love-study/p/5114028.html 源码链接: http://pan.baidu.com/s/1i4rLm2x 密码: 4wdh转载于:https://www.cnblogs.com/eustoma/p/5118259.html

Couldn‘t run wireshark in child process:权限不够

问题描述 在ubuntu中通过root&#xff08;sudo wireshark&#xff09;权限启动wireshark时出现Couldn‘t run wireshark in child process:权限不够 问题原因 暂不清楚 解决方法 sudo apt-get install libcap2-bin wireshark sudo wireshark

mysql时间区间的查询

SELECT * from suncco_activity_dynamicmsg where show_time > 2013-07-8 00:00:00 and show_time < 2013-07-9 23:59:59;

分享Memcached shell启动停止脚本

注意&#xff1a;要使用这个shell&#xff0c;必须先成功建立memcache环境 1》建立memcached文件和权限 [rootluozhonghua ~]# touch /etc/init.d/memcached [rootluozhonghua ~]# chmod x /etc/init.d/memcached 2》编写Memcached shell管理脚本 vi /etc/init.d/memcached #…

Ubuntu GitHub

一个GitHubnewbie的自白&#xff1a;一、安装git1.查看是否已经安装&#xff1a;$git2.没有安装则&#xff1a;$sudoapt-getinstallgit3.在主文件夹中新建一文件夹mygit&#xff1a;$mkdirmygit4.进入mygit&#xff0c;初始化版本库&#xff1a;$cdmygit$gitinit5.完善个人信息…