npm 错误记录

npm run dev

iview[email protected] 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! [email protected] dev: gulp --gulpfile build/build-dev.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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安装依赖

即可解决错误。

猜你喜欢

转载自www.cnblogs.com/cjjjj/p/11205313.html