【问题标题】:ReferenceError: primordials is not defined - bootstrap 4 installReferenceError: primordials 未定义 - bootstrap 4 install
【发布时间】:2021-08-18 23:11:57
【问题描述】:

我正在使用下面的 url 来启动 bootstrap 4: https://coursetro.com/posts/design/72/Installing-Bootstrap-4-Tutorial

但是当我运行 gulp 命令时出现以下错误。

ReferenceError: primordials 未定义 在 fs.js:39:5 在 req_ (X:\Users\pradeep.patel\Desktop\PP\Website\PP\node_modules\natives\index.js:143:24) 在 Object.req [按要求] (X:\Users\pradeep.patel\Desktop\PP\Website\PP\node_modules\natives\index.js:55:10) 在对象。 (X:\Users\pradeep.patel\Desktop\PP\Website\PP\node_modules\graceful-fs\fs.js:1:37) 在 Module._compile (internal/modules/cjs/loader.js:1185:30) 在 Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10) 在 Module.load (internal/modules/cjs/loader.js:1034:32) 在 Function.Module._load (internal/modules/cjs/loader.js:923:14) 在 Module.require (internal/modules/cjs/loader.js:1074:19) 在需要(内部/模块/cjs/helpers.js:72:18)

【问题讨论】:

    标签: npm bootstrap-4 sass gulp


    【解决方案1】:

    我已运行以下命令,问题已解决:

    npm install -g minimatch(回车)

    npm install -g graceful-fs (回车)

    npm 链接 gulp (回车)

    谢谢, 聚丙烯

    【讨论】: