我试图运行我的应用程序使用下面的命令:帆服务器未启动
forever start /var/www/app.js --prod
但我有此错误:
To run an app using `node app.js`, you usually need to have a version of `sails` installed in the same directory as your app.
To do that, run `npm install sails`
Alternatively, if you have sails installed globally (i.e. you did `npm install -g sails`), you can use `sails lift`.
When you run `sails lift`, your app will still use a local `./node_modules/sails` dependency if it exists,
but if it doesn't, the app will run with the global sails instead!
帆已安装在同一目录下。 Forever全球安装。
我还考
node app.js --prod
但同样的错误,所以它不是因为永远。
我在节点V4.1.1和npm v3.3.4下。 sails lift
工作很好。
您是否试图做错误信息的建议? –
是的:)也尝试删除node-modules/sails和npm再次安装它,但没有运气... – jaumard
你试过运行$ npm install,然后运行$永远启动app.js? –