纱线运行命令失败:sage主题

时间:2018-12-19 09:09:29

标签: node.js wordpress npm yarnpkg roots-sage

运行yarn run命令时出现错误,yarn build运行成功,但是毛线运行失败,以下是错误消息。

yarn run v1.12.3 $ webpack --hide-modules --watch --config
resources/assets/build/webpack.conf ig.js
internal/modules/cjs/loader.js:582 throw err; ^

Error: Cannot find module
‘E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\resources\assets\build\webpack.conf’
at Function.Module._resolveFilename
(internal/modules/cjs/loader.js:580:15) at Function.Module._load
(internal/modules/cjs/loader.js:506:25) at Module.require
(internal/modules/cjs/loader.js:636:17) at require
(internal/modules/cjs/helpers.js:20:18) at requireConfig
(E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\bin\convert-argv.js:97:18)
at
E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\bin\convert-argv.js:104:17
at Array.forEach () at module.exports
(E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\bin\convert-argv.js:102:15)
at yargs.parse
(E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\bin\webpack.js:171:41) at Object.Yargs.self.parse
(E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name\node_modules\webpack\node_modules\yargs\yargs.js:533:18)
error Command failed with exit code 1. info Visit
https://yarnpkg.com/en/docs/cli/run for documentation about this
command. PS
E:\Xampp-updated\htdocs\theme-folder\wp-content\themes\theme-name>

有人可以帮我解决这个问题吗?预先感谢。

0 个答案:

没有答案