1

我遵循安装 MEAN 堆栈应用程序的每条指令。

最后我跑了grunt,当我去http://localhost:3000我得到以下错误:

Running "clean:0" (clean) task

Running "jshint:all" (jshint) task
>> 47 files lint free.

Running "csslint:src" (csslint) task
>> 5 files lint free.

Running "concurrent:tasks" (concurrent) task
Running "nodemon:dev" (nodemon) task
Running "watch" task
Waiting...
[nodemon] v1.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node --debug server.js`
debugger listening on port 5858
Mongoose: packages.findOne({ name: 'config' }) { fields: undefined }  
3000
Mean app started on port 3000 (development)
Mongoose: users.ensureIndex({ email: 1 }) { safe: undefined, background: true, unique: true }  
Mongoose: users.ensureIndex({ username: 1 }) { safe: undefined, background: true, unique: true }  
GET / 304 41.185 ms - -

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: ENOENT, open '/var/www/finnviz/bower_components/bootstrap/dist/css/bootstrap.css'
[nodemon] app crashed - waiting for file changes before starting...

我搜索并找到了这个答案,但情况似乎并非如此,当我运行时,ps aux | grep node我没有得到任何正在运行的进程:

trufa    14763  0.0  0.0  23492   956 pts/14   S+   15:39   0:00 grep --color=auto node

我搜索了很多答案,但似乎没有一个适用。有人建议更改端口。我试过了,错误是一样的。

关于如何进行的任何建议?

4

2 回答 2

1

如果您使用 sudo 运行 npm,有时自动凉亭安装不起作用。

  1. 我建议进行设置,npm因此它不需要sudo.
  2. 尝试$ bower install从项目根目录运行,然后重新启动服务器。
于 2014-09-25T15:17:47.913 回答
0

您使用相同的端口 8080 运行了另一台服务器。

于 2018-01-09T12:27:27.133 回答