运行Gatsby hello-world示例的fsevents.watch错误

时间:2020-02-06 22:38:50

标签: gatsby

我正在尝试在macOS Mojave上进行“设置开发环境”教程。一切正常,直到我尝试运行gatsby develop。这样做的时候,我得到以下错误:“无法拒绝fsevents.watch不是函数”和“ TypeError:fsevents.watch不是函数”。有人知道该怎么办吗?

1 个答案:

答案 0 :(得分:0)

显然,我有一些旧的节点残留物,必须删除它们才能使自制节点安装正常工作。我做到了

var addTodo = function(){
    var todoList = document.createElement('li');

    todoList.className = "list-group-item d-flex justify-content-between";
    todoList.appendChild(document.createTextNode('Todo 5'));

    var todoList_a = document.createElement('a');
    todoList_a.className = "delete-item";
    todoList_a.setAttribute('href','#');

    var todoList_a_i = document.createElement('i');
    todoList_a_i.className = "fa fa-remove";

    todoList_a.append(todoList_a_i);

    todoList.append(todoList_a);  
};

然后我可以成功运行brew uninstall node sudo rm -rf ~/.node brew install node