jquery-validation missing dist folder

后端 未结 2 1918
天涯浪人
天涯浪人 2021-02-14 11:17

I am trying to add jquery-validation to a project in visual studio 2015. When I add \"jquery-validation\" to bower.json I see that the jquery-validation folder is added to wwwro

相关标签:
2条回答
  • 2021-02-14 11:45

    npm 2 generates several nested folders which causes paths on Windows to bug. If that is the issue then you should update to npm 3 where they fixed it.

    npm i -g npm
    
    0 讨论(0)
  • 2021-02-14 11:53

    I had a similar issue and was able to fix it by installing grunt globally then running npm install in the jquery-validation folder:

    1. Open node js command prompt and run npm install -g grunt
    2. In any command prompt (I used developer command prompt from VS) navigate to jquery-validation folder and run npm install

    Afterwards, the jquery-validation\dist folder should show up with the jquery.validate.js file.

    0 讨论(0)
提交回复
热议问题