use*_*345 10 jquery-validation-engine visual-studio-2015
我正在尝试将jquery-validation添加到visual studio 2015中的项目.当我向bower.json添加"jquery-validation"时,我看到jquery-validation文件夹被添加到wwwroot/lib /但是没有dist /文件夹.
jquery-validation软件包看起来需要构建,但我无法看到如何在visual studio 2015中构建.右键单击grunt文件不会显示任务运行器资源管理器.
如果我使用命令窗口并尝试在wwwroot/lib/jquery-validation /文件夹中使用"npm install"和"grunt",则在"jscs:all"任务后出现错误:
Running "jscs:all" (jscs) task
Fatal error: Neither config file nor grunt options were defined
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.4.0
npm ERR! npm v2.14.20
npm ERR! code ELIFECYCLE
npm ERR! jquery-validation@1.15.1-pre prepublish: `grunt`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jquery-validation@1.15.1-pre prepublish script 'grunt'.
npm ERR! This is most likely a problem with the jquery-validation package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs jquery-validation
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls jquery-validation
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:\asp.net 5 ef7 bootstrap anygular web app\4-aspdotnet-5-ef7-bootstrap-angular-web-app-m4-exercise-files\after\src\TheWorld\wwwroot\lib\jquery-validation\npm-debug.log
Run Code Online (Sandbox Code Playgroud)
我一定是想念一些简单的东西!
npm 2 生成多个嵌套文件夹,这会导致 Windows 上的路径出现错误。如果这是问题所在,那么您应该更新到 npm 3,他们已修复该问题。
npm i -g npm
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2496 次 |
| 最近记录: |