我按照步骤安装grunt(适用于Magento2),当我尝试这样做时:
$grunt || sudo grunt
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'underscore'
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'underscore'
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
当我必须创建文件Gruntfile.js时,我重命名Gruntfile.js.sample
我试过了: - npm安装 - npm安装 - npm install node_modules
我忘记了吗?
(我没有找到dev / tools / grunt / configs / theme.js,但是我已将它安装在没有它的其他服务器上,没有任何事情发生)