Gruntjs grunt找不到模块下划线
我按照步骤安装grunt(针对Magento2),当我尝试执行以下操作时:Gruntjs grunt找不到模块下划线,gruntjs,magento2,Gruntjs,Magento2,我按照步骤安装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.
$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安装节点单元模块
你觉得我忘了吗
(我找不到dev/tools/grunt/configs/theme.js,但我已经在另一台没有它的服务器上安装了它,什么也没有发生)