npm run dev iview-weapp@1.1.0 dev /Users/Jovins/Desktop/小程序/iview-weapp gulp --gulpfile build/build-dev.js sh: gulp: command not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! iview-weapp@1.1.0 dev: gulp --gulpfile build/build-dev.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the iview-weapp@1.1.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /Users/Jovins/.npm/_logs/2018-06-13T10_40_07_697Z-debug.log
运行:
执行npm install安装依赖
即可解决错误。