0

我已经安装了 node.js。我在博客文件所在的目录中输入了命令 npm install --production 和 npm start。然而,输出仅仅是: -

E:\Documents\Blog\ghost-0.4.0>npm start

> ghost@0.4.0 start E:\Documents\Blog\ghost-0.4.0
> node index

E:\Documents\Blog\ghost-0.4.0>

什么时候应该:-

E:\Documents\Blog\ghost-0.4.0>npm start

> ghost@0.4.0 start E:\Documents\Blog\ghost-0.4.0
> node index


E:\Documents\Blog\ghost-0.4.0>

Ghost is running
Listening on 127.0.0.1:2368
URL configures as http://my-ghost-blog.com
press CTRL+C to shut down.

我应该如何解决这个问题?

4

1 回答 1

0

它在 Windows 7 上的工作方式与此完全相同,我预计 Windows 7 和 8 之间不会有任何差异,所以这很奇怪。

可以直接用node启动Ghost,会不会报错?

node index.js

C:\Projects\Ghost\ghost-0.4.1>node index.js
Ghost is running in development...
Listening on 127.0.0.1:2368
Url configured as: http://localhost:3000/blog
Ctrl+C to shut down
于 2014-02-01T19:38:22.367 回答