npm错误!用Gulp编译时代码为ELIFECYCLE

问题描述 投票:0回答:1

我已从ColorLib下载名为“ Uza”的主题。我无法编译sass,主题使用Gulp进行编译,但是当我运行脚本时出现此错误。

主题链接(https://colorlib.com/wp/template/uza/]

我已经安装了npm,并且正如我尝试运行的自述文件中所述

PS D:\WebDev Material\Themes\uza> npm run start
     > [email protected] start D:\WebDev Material\Themes\uza

fs.js:27
const { Math, Object } = primordials;
                         ^

ReferenceError: primordials is not defined
    at fs.js:27:26
    at req_ (D:\WebDev Material\Themes\uza\node_modules\natives\index.js:143:24)
    at Object.req [as require] (D:\WebDev Material\Themes\uza\node_modules\natives\index.js:55:10)
    at Object.<anonymous> (D:\WebDev Material\Themes\uza\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:868:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
    at Module.load (internal/modules/cjs/loader.js:731:32)
    at Function.Module._load (internal/modules/cjs/loader.js:644:12)
    at Module.require (internal/modules/cjs/loader.js:771:19)
    at require (internal/modules/cjs/helpers.js:68:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `gulp`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start 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\rahul\AppData\Roaming\npm-cache\_logs\2019-09-26T15_34_57_389Z-debug.log

javascript html sass gulp themes
1个回答
0
投票

请降级/切换到NodeJS 10,这是NodeJS 12和特定依赖项的已知问题。或释放锁定文件(package-lock.json),然后重试。

© www.soinside.com 2019 - 2024. All rights reserved.