我已按照以下说明安装了平均堆栈:
$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash
$ sudo apt-get update
$ sudo apt-get install nodejs
$ npm install -g gulp
$ npm install -g bower
$ sudo npm install -g mean-cli
$ mean init testApp
$ cd testApp && npm install
每当我运行gulp
命令时,它都会成功启动并显示最后一行:
Mean app started on port 3000 (development) cluster.worker.id: 0
[12:09:03] index.html reloaded.
之后如果我转到localhost:3000
,页面会在无限循环中重新加载并在终端上显示以下输出:
Mean app started on port 3000 enter code here`(development) cluster.worker.id: 0
[12:09:03] index.html reloaded.
GET / - - - - ms
GET / - - - - ms
GET / - - - - ms
答案 0 :(得分:0)
npm上的交叉检查权限也会从root更改所有者。