Yeoman - task “requirejs” not found

空扰寡人 提交于 2019-12-06 05:07:44

I came across a similar problem just now, and after an hour working, I finally figure it out :)

Here is my suggest:

1 npm update

use the update command to make sure you have the packages installed.

2 check if you have made the same mistake like me.

About the 'package.json' file: I have placed all my dependencies in "dependencies" instead of "devDependencies". By doing so, npm will still install all the packages, yet yeoman will fall to find them.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!