我先执行以下命令,没有出现问题
cd web/
npm install
cd client/
npm install
但是当我执行
cd ../
npm run dev
发生错误,我不知道如何解决,
zcy@ubuntu:~/new project/blockchain-document-management/web$ npm run dev
> nykredit-network@0.0.1 dev /home/zcy/new project/blockchain-document-management/web
> concurrently --kill-others-on-fail "npm run server" "npm run client"
[0]
[0] > nykredit-network@0.0.1 server /home/zcy/new project/blockchain-document-management/web
[0] > nodemon app.js
[0]
[1]
[1] > nykredit-network@0.0.1 client /home/zcy/new project/blockchain-document-management/web
[1] > cd client && npm run start
[1]
[0] sh: 1: nodemon: not found
[0] npm ERR! file sh
[0] npm ERR! code ELIFECYCLE
[0] npm ERR! errno ENOENT
[0] npm ERR! syscall spawn
[0] npm ERR! nykredit-network@0.0.1 server: `nodemon app.js`
[0] npm ERR! spawn ENOENT
[0] npm ERR!
[0] npm ERR! Failed at the nykredit-network@0.0.1 server script.
[0] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[0]
[0] npm ERR! A complete log of this run can be found in:
[0] npm ERR! /home/zcy/.npm/_logs/2018-12-17T02_31_36_271Z-debug.log
[0] npm run server exited with code 1
--> Sending SIGTERM to other processes..
[1] npm run client exited with code SIGTERM
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nykredit-network@0.0.1 dev: `concurrently --kill-others-on-fail "npm run server" "npm run client"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nykredit-network@0.0.1 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/zcy/.npm/_logs/2018-12-17T02_31_36_412Z-debug.log