每次安装都会报这个错误?
`
npm start
omi-mp@0.0.0 start D:\work\project\test\xyk
concurrently --kill-others "gulp" "node scripts/start.js"
[0] assert.js:42
[0] throw new errors.AssertionError({
[0] ^
[0]
[0] AssertionError [ERR_ASSERTION]: Task function must be specified
[0] at Gulp.set [as _setTask] (D:\work\project\test\xyk\node_modules\undertaker\lib\set-task.js:10:3)
[0] at Gulp.task (D:\work\project\test\xyk\node_modules\undertaker\lib\task.js:13:8)
[0] at Object. (D:\work\project\test\xyk\gulpfile.js:9:6)
[0] at Module._compile (module.js:652:30)
[0] at Object.Module._extensions..js (module.js:663:10)
[0] at Module.load (module.js:565:32)
[0] at tryModuleLoad (module.js:505:12)
[0] at Function.Module._load (module.js:497:3)
[0] at Module.require (module.js:596:17)
[0] at require (internal/module.js:11:18)
[0] gulp exited with code 1
--> Sending SIGTERM to other processes..
[1] node scripts/start.js exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! omi-mp@0.0.0 start: concurrently --kill-others "gulp" "node scripts/start.js"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the omi-mp@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
`
2条答案
按热度按时间sxpgvts31#
最后怎么解决?我试了下不会出现。看我下面的测试截图~~
643ylb082#