简体   繁体   English

启动node.js服务

[英]start a node.js service

I am attempting to follow the setup instructions for the node.js service, blueimp-file-upload, found here: 我正在尝试按照node.js服务的设置说明进行操作,blueimp-file-upload,可在此处找到:

https://github.com/blueimp/jQuery-File-Upload/wiki/Setup https://github.com/blueimp/jQuery-File-Upload/wiki/Setup

Specifically, I'm working through these steps under Using jQuery File Upload (UI version) with Node.js : 具体来说,我正在使用Node.js使用jQuery文件上传(UI版本)下的这些步骤:

You can install the sample Node.js upload service on your server via npm: 您可以通过npm在服务器上安装示例Node.js上载服务:

npm install blueimp-file-upload-node npm install blueimp-file-upload-node

You can start the service by running the following command: 您可以通过运行以下命令来启动该服务:

./node_modules/blueimp-file-upload-node/server.js ./node_modules/blueimp-file-upload-node/server.js

I have completed the first step (the installation of npm), but I do not understand what is meant by running the "./node_modules/..." command. 我已完成第一步(安装npm),但我不明白运行“./node_modules / ...”命令的含义。 It is not considered valid syntax in Windows' command prompt, nor the Node.js-specific command prompt, even when prefixed with npm. 在Windows的命令提示符中,它不被视为有效语法,也不是特定于Node.js的命令提示符,即使以npm为前缀也是如此。

You have to run it in Node.JS. 你必须在Node.JS中运行它。 In the command line, type: 在命令行中,键入:

node node_modules/blueimp-file-upload-node/server.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM