yxy9022/LitAdmin

请教一个问题

Opened this issue · 1 comments

运行 npm run dev
报如下的错误
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "F:\vs\2017\Professional\Web\External\Node.exe" "F:\vs\201
7\Professional\Web\External\node_modules\npm\bin\npm-cli.js" "run" "dev"
npm ERR! node v5.4.1
npm ERR! npm v3.3.4
npm ERR! code ELIFECYCLE
npm ERR! litadmin@1.2.0 dev: node build/dev-server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the litadmin@1.2.0 dev script 'node build/dev-server.js'.
npm ERR! This is most likely a problem with the litadmin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node build/dev-server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls litadmin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\李庆\Downloads\LitAdmin-master\npm-debug.log

启动服务端
(1)新开一个命令行窗口
(2)定位到项目中的server目录并安装依赖

cd 你自己的位置/LitAdmin/server
npm install
(3)依赖安装成功后执行启动命令
npm start

显示如下内容说明服务端启动成功

Server is runing... Listening on port 3000

Listening at http://localhost:3000