Sto provando ad aggiungere jquery-validation a un progetto in visual studio 2015. Quando aggiungo "jquery-validation" a bower.json vedo che la cartella jquery-validation viene aggiunta a wwwroot/lib/ma non esiste dist/folder.jquery-validation cartella dist mancante
Il pacchetto di convalida jquery sembra che debba essere compilato, ma non riesco a vedere come creare all'interno di visual studio 2015. Un clic destro sul file grunt non mostra l'explorer del task runner.
se uso una finestra di comando e cercare di usare "NPM install" e "grugnito" nel wwwroot/lib/jquery-validazione/cartella ottengo un errore dopo il "JSCS: all" operazione:
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! [email protected] prepublish: `grunt`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
Mi manca qualcosa di semplice!
Ho quasi lo stesso problema. Grunt deve costruire la cartella dist ma fallisce perché il sistema di Windows smette di costruire percorsi con più di 260 caratteri. – Kirsten
Hai mai capito come correggere questo problema? Sto lottando con esso proprio ora. – WBuck
Lo stesso qui - nessuna delle due risposte di seguito sembra funzionare per me - ottengo lo stesso errore dell'OP – lesscode