Sails grunt watch-警告:无法读取未定义用法的属性“ bigint” --force继续

时间:2018-06-28 14:00:05

标签: gruntjs sails.js warnings

我在当前项目上航行,只是将当前项目复制到新的macbook high sierra,并且在运行任务grunt和编辑资产文件时突然显示此错误。

风帆版本:1.0.2

Grunt-cli版本:1.2.0

Grunt版本:1.0.3

Npm版本:6.1.0

Running "watch" task
Waiting...
>> File "assets/styles/project/_colors.scss" changed.
Running "less:dev" (less) task
>> 1 stylesheet created.

Running "sass:dev" (sass) task

Running "sync:dev" (sync) task
**Warning: Cannot read property 'bigint' of undefined Use --force to continue.**

当我运行此问题的跟踪信息时,将会显示

Warning: Cannot read property 'bigint' of undefined Use --force to continue.
TypeError: Cannot read property 'bigint' of undefined
  at Object.stat (fs.js:795:37)
  at Object.stat (/Users/erwinsetiawan/Works/Project/review-portal/node_modules/sails-hook-grunt/node_modules/promised-io/promise.js:709:17)
  at processPair (/Users/erwinsetiawan/Works/Project/review-portal/node_modules/sails-hook-grunt/node_modules/grunt-sync/tasks/sync.js:143:28)
  at /Users/erwinsetiawan/Works/Project/review-portal/node_modules/sails-hook-grunt/node_modules/grunt-sync/tasks/sync.js:52:16
  at Array.map (<anonymous>:null:null)
  at Object.<anonymous> (/Users/erwinsetiawan/Works/Project/review-portal/node_modules/sails-hook-grunt/node_modules/grunt-sync/tasks/sync.js:37:38)
  at Array.map (<anonymous>:null:null)
  at Object.<anonymous> (/Users/erwinsetiawan/Works/Project/review-portal/node_modules/sails-hook-grunt/node_modules/grunt-sync/tasks/sync.js:29:28)
  at Object.<anonymous> (/Users/erwinsetiawan/Works/Project/review-portal/node_modules/grunt/lib/grunt/task.js:252:15)
  at Object.thisTask.fn (/Users/erwinsetiawan/Works/Project/review-portal/node_modules/grunt/lib/grunt/task.js:70:16)
  at Object.<anonymous> (/Users/erwinsetiawan/Works/Project/review-portal/node_modules/grunt/lib/util/task.js:294:30)
  at Task.runTaskFn (/Users/erwinsetiawan/Works/Project/review-portal/node_modules/grunt/lib/util/task.js:244:24)
  at Task.<anonymous> (/Users/erwinsetiawan/Works/Project/review-portal/node_modules/grunt/lib/util/task.js:293:12)
  at /Users/erwinsetiawan/Works/Project/review-portal/node_modules/grunt/lib/util/task.js:220:11
  at process._tickCallback (internal/process/next_tick.js:61:11)

将项目运行到另一台笔记本电脑旧的capitan和Windows上时什么也没有发生

有人可以帮助我解决难题吗?

3 个答案:

答案 0 :(得分:1)

此问题似乎已在grunt-sync 0.8.0中修复。我建议更新grunt-sync程序包。

答案 1 :(得分:0)

从节点10.5.0降级到节点10.4.1可以解决此问题,因此当前的grunt版本可能还不支持最新的节点版本。

答案 2 :(得分:0)

现在已在sails-hook-grunt@4.0.1中修复(有关更多信息,请参见https://github.com/balderdashy/sails/issues/4470