如何解决当我尝试在项目中运行grunt build时,是什么导致我出错?
我正在尝试构建一个庞大的项目。当我插入命令grunt build
时,出现此错误。
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN foundation-libsass-template@0.0.1 No repository field.
npm WARN foundation-libsass-template@0.0.1 No license field.
vagrant@myinteger:/vweb/www.afsb.net$ grunt
/vweb/www.afsb.net/node_modules/chalk/source/index.js:106
...styles,^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/vweb/www.afsb.net/node_modules/grunt-legacy-log-utils/index.js:12:13)
vagrant@myinteger:/vweb/www.afsb.net$
我尝试删除node_modules文件夹,并且npm install运行没有问题。高
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。