2016-02-25 36 views
1

我有nginx安裝到c:\nginx\,節點應用程序在c:\node\stock\。我有我的gruntfile.jsc:\node\stock\gruntfile.js。我試過config: 'c:\\nginx\\conf\\nginx.conf'prefix: 'c:\\nginx'。還有config: '../../nginx/conf/nginx.conf'prefix: '../../nginx/'nginx與grunt-nginx - 在Windows上的路徑

我收到此錯誤信息:

Exception thrown in attempt to start nginx: Error: Error: not found: nginx

應該怎樣這些路徑是..?

回答

0

作者grunt-nginxhttps://github.com/alexcurtis)在github上回答了我的問題。

您必須將PATH添加到您的Windows環境變量的nginx(c:\nginx),然後重新啓動您的控制檯。