Visual Studio (VS) 使用Gulp报错 ReferenceError: primordials is not defined


错误描述

VS2019使用 Gulp压缩 js和 less转css

右键 gulpfile.js

任务运行程序资源管理器

提示无法加载

Visual Studio (VS) 使用Gulp报错 ReferenceError: primordials is not defined

输出窗口,一定要选择  输出来源 为:任务运行程序资源管理器

错误信息

 

错误信息:

   错误信息
ReferenceError: primordials is not defined
    at fs.js:36:5
    at req_ (E:\GZ\GZBlog\YESCMS\node_modules\natives\index.js:143:24)
    at Object.req [as require] (E:\GZ\GZBlog\YESCMS\node_modules\natives\index.js:55:10)
    at Object.<anonymous> (E:\GZ\GZBlog\YESCMS\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)

项目中显示依赖未安装

Visual Studio (VS) 使用Gulp报错 ReferenceError: primordials is not defined

解决方案

Visual Studio (VS) 使用Gulp报错 ReferenceError: primordials is not defined 

不要使用 cnpm 安装,使用 npm install

不要使用:cnpm install

使用:npm install 就没问题了

Ruby 全选
npm install

Visual Studio (VS) 使用Gulp报错 ReferenceError: primordials is not defined

版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
管理员
上一篇:.NET5 ASP.NET Core 添加API限流
下一篇:AI聊天机器人总结,图灵、思知、小爱、小微
评论列表

发表评论

评论内容
昵称:
关联文章

Visual Studio (VS) 使用Gulp ReferenceError: primordials is not defined
.NET Core中使用编码GB2312‘GB2312‘ is not a supported encoding name 解决方案
Visual Studio(VS) web停止调试后关闭浏览器配置
VS .NET使用EF添加实体数据模型向导添加连接
Visual Studio(VS)发布自动使用Net Reactor给生成的DLL加壳
Macros $(DevEnvDir), $(SolutionFileName), $(SolutionPath), $(SolutionDir), $(SolutionName), $(SolutionExt) are not defined during publish. Worked fine during build
Visual Studio(VS) 集成 Git 的命令窗口 Git Bash
Python读取excel xlrd读取xlsx:Excel xlsx file; not supported
Visual Studio(VS)生成错误:尝试访问已卸载的 AppDomain。
解决:旧项目升级新版Unity2021导致Visual Studio无法使用
开源组件:DockPanelSuite(WeifenLuo.WinFormsUI.Docking)Visual Studio风格的用户界面 使用
EF MySQL取值时出错: Specified cast is not valid
Visual Studio 2019 远程调试工具(Remote Debugger)
.Net启动程序:It was not possible to find any compatible framework version
Visual Studio 的一些常用设置
Python使用html解析包Requests-html运行py文件没问题,Pyinstaller打包exe后运行
.net Core Swagger the same schemaid is already used for type swagger
.NETCore 运行项目:Could not load file or assembly ***
插入代码页面
VUE使用sass提示在sass文件中提示Syntax Error : this.getOptions is not a function

联系我们
联系电话:15090125178(微信同号)
电子邮箱:garson_zhang@163.com
站长微信二维码
微信二维码