首页 > 其他分享 >解决vue项目build的时候报错Warning: Accessing non-existent property ‘cat‘ of module exports inside circular

解决vue项目build的时候报错Warning: Accessing non-existent property ‘cat‘ of module exports inside circular

时间:2023-09-06 11:33:04浏览次数:43  
标签:node non vue exports module Accessing 报错 circular

* 正在执行任务: npm run build


> selection-tool@1.0.0 build
> node build/build.js

- building for production...(node:8992) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8992) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:8992) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
Hash: be3696dd62e82cf71a71
Version: webpack 3.12.0
Time: 28676ms

 

package.json里面的 "shelljs":版本修改为0.8.4重新 npm i 然后npm run build即可



标签:node,non,vue,exports,module,Accessing,报错,circular
From: https://www.cnblogs.com/tongzhe/p/17681866.html

相关文章

  • vuejs3.0 从入门到精通——脚手架安装
    脚手架安装 VueCLI是基于Vue.js进行快速开发的完整系统,支持搭建交互式项目、快速开始零配置原型开发、丰富的官方插件集合,以及完全图形化地创建和管理Vue.js项目的用户界面。 VueCLI致力于将Vue.js生态中的工具基础标准化,它确保各种构件工具基于智能的默认配置即......
  • 【git】git拉取项目报错
    1、报错现象>gitpull@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WARNING:REMOTEHOSTIDENTIFICATIONHASCHANGED!@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ITISPOSSIBLETHATSOMEONEISDOINGSOMETHINGNASTY!......
  • 学习 vue.js 3.0 中遇到的前端相关网站汇总
    序章最近学习vue.js,期间遇到不少相关网站,特整理于本文。 学习教程菜鸟教程https://www.runoob.com/ 阮一峰:Flex布局教程语法:https://www.ruanyifeng.com/blog/2015/07/flex-grammar.html实例:https://www.ruanyifeng.com/blog/2015/07/flex-examples.html W3Csch......
  • Vue3 setup 如何添加name
    Vue3setup如何添加name小满zs2022-11-2915:5810778 开启掘金成长之旅!这是我参与「掘金日新计划·12月更文挑战」的第2天,点击查看活动详情Vue3中name有什么用呢?1.在递归组件的时候需要定义name2.配合keep-aliveincludeexclude可以缓存组件3.在Vue有报错或......
  • vue项目实录:下拉刷新组件的开发
    “下拉刷新”和“上滑加载更多”功能在前端、尤其是移动端项目中非常重要,这里笔者由曾经做过的vue项目中的“blink”功能和各位探讨下【下拉刷新】组件的开发:正式开篇在前端项目的components文件夹下新建pullRefreshView文件夹,在其中新建组件index.vue:(它代表“整个屏幕”,通过s......
  • vue3探索——使用ref与$parent实现父子组件间通信
    在vue3中,可以使用vue3的APIdefineExpose()函数结合ref或者$parent,实现父子组件数据的传递。子组件向父组件传递数据defineExpose()和ref子组件:通过defineExpose()函数,向外暴露响应式数据或者方法//src/components/son.vue<template><div><h1>儿子有${{so......
  • 使用 vue 渲染静态模板
    最近再一次需要做纯静态页面(无任何脚本语言,只保留css和html),以往我直接使用ejs生成,但是工作中一直使用jsx和vue来组装页面,就突发奇想,难道react、vue不能只渲染纯静态页面吗?有了这个想法,我就想验证下可行性,万能百度开始,找了一圈,发现基本都是需要脚本依赖的,这就意味着必......
  • 如何在Vue项目中引入富文本编辑器(wang-enduit)
    介绍官网https://www.wangeditor.com/安装yarnadd@wangeditor/editornpminstall@wangeditor/editor--saveyarnadd@wangeditor/editor-for-vue@nextnpminstall@wangeditor/editor-for-vue@next--save使用自定义上传图片,先转base64,转blob,上传服务器<divid="wa......
  • 【坑】VUE中动态数据使用 wow.js 没效果的问题
    一般来说正常使用都是在mounted函数中mounted(){this.$nextTick(()=>{this.$wow.init()})}这样如果是死数据是可以正常出现效果的但是如果是请求回来的数据是没有效果的需要改一下生成时机  此处的newList即为请求的数据watch:{newsl......
  • docker 打开报错 windows hypervisor is not present docker desktop is unable to de
     dockerdesktop-windowshypervisorisnotpresentdockerdesktopisunabletodetectahypervisor.hardwareassistedvirtualizationanddataexecutionprotectionmustbeenabledintheblos.seehttps://docsdocker.com/desktop/troubleshoot/topics/#virtua......