angular - Can't install angular2-datatable in VS2015 project with npm -


i'm developing angular 2 web app asp.net 5. want install angular2-datatable npm create table. i've added following dependency package.json file:

"angular2-datatable": "^0.4.2" 

after save file dependency doesn't installed. on opposite following result:

path=c:\program files\nodejs;%path%;.\node_modules\.bin;c:\program files (x86)\microsoft visual studio 14.0\web\external;c:\program files (x86)\microsoft visual studio 14.0\web\external\git "c:\program files\nodejs\npm.cmd" install > angular2-datatable@0.4.2 postinstall c:\hmr9sw\rwd\src\rwd\node_modules\angular2-datatable > cd src && typings install undefined:1 { ^ syntaxerror: unexpected token  in json @ position 0     @ object.parse (native)     @ exports.parse (c:\users\admin\appdata\roaming\npm\node_modules\typings\node_modules\rc\lib\utils.js:15:17)     @ addconfigfile (c:\users\admin\appdata\roaming\npm\node_modules\typings\node_modules\rc\index.js:31:20)     @ module.exports (c:\users\admin\appdata\roaming\npm\node_modules\typings\node_modules\rc\index.js:45:3)     @ object.<anonymous> (c:\users\admin\appdata\roaming\npm\node_modules\typings\node_modules\typings-core\dist\utils\rc.js:11:44)     @ module._compile (module.js:541:32)     @ object.module._extensions..js (module.js:550:10)     @ module.load (module.js:458:32)     @ trymoduleload (module.js:417:12)     @ function.module._load (module.js:409:3) npm warn rwd@0.0.0 no description npm warn rwd@0.0.0 no repository field. npm warn rwd@0.0.0 no license field. npm err! windows_nt 6.1.7601 npm err! argv "c:\\program files\\nodejs\\node.exe" "c:\\users\\admin\\appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" npm err! node v6.2.1 npm err! npm  v3.9.5 npm err! code elifecycle npm err! angular2-datatable@0.4.2 postinstall: `cd src && typings install` npm err! exit status 1 npm err!  npm err! failed @ angular2-datatable@0.4.2 postinstall script 'cd src && typings install'. npm err! make sure have latest version of node.js , npm installed. npm err! if do, problem angular2-datatable package, npm err! not npm itself. npm err! tell author fails on system: npm err!     cd src && typings install npm err! can information on how open issue project with: npm err!     npm bugs angular2-datatable npm err! or if isn't available, can info via: npm err!     npm owner ls angular2-datatable npm err! there additional logging output above. npm err! please include following file support request: npm err!     c:\hmr9sw\rwd\src\rwd\npm-debug.log 

as can see npm version 3.9.5 , node version 6.2.1 (therefore updated). if run npm through cmd same result.

try using angular2-data-table (https://www.npmjs.com/package/angular2-data-table). gets installed without errors , features good.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -