none
npm package is not correctly instaling in visual studio 2015 RRS feed

  • Question

  • i started hybrid app development .when i run sample project i got many errors

    error log file statement are following

    0 info it worked if it ends with ok
    1 verbose cli [ 'C:\\Users\\gopus\\AppData\\Roaming\\Microsoft\\VisualStudio\\MDA\\vs-npm\\2.14.9\\\\node.exe',
    1 verbose cli   'C:\\Users\\gopus\\AppData\\Roaming\\Microsoft\\VisualStudio\\MDA\\vs-npm\\2.14.9\\node_modules\\npm\\bin\\npm-cli.js',
    1 verbose cli   'install' ]
    2 info using npm@2.14.9
    3 info using node@v0.12.9
    4 verbose readDependencies loading dependencies from C:\Users\gopus\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\package.json
    5 error install Couldn't read dependencies
    6 verbose stack Error: ENOENT, open 'C:\Users\gopus\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\package.json'
    6 verbose stack     at Error (native)
    7 verbose cwd C:\Users\gopus\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9
    8 error Windows_NT 6.2.9200
    9 error argv "C:\\Users\\gopus\\AppData\\Roaming\\Microsoft\\VisualStudio\\MDA\\vs-npm\\2.14.9\\\\node.exe" "C:\\Users\\gopus\\AppData\\Roaming\\Microsoft\\VisualStudio\\MDA\\vs-npm\\2.14.9\\node_modules\\npm\\bin\\npm-cli.js" "install"
    10 error node v0.12.9
    11 error npm  v2.14.9
    12 error path C:\Users\gopus\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\package.json
    13 error code ENOPACKAGEJSON
    14 error errno -4058
    15 error package.json ENOENT, open 'C:\Users\gopus\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\package.json'
    15 error package.json This is most likely not a problem with npm itself.
    15 error package.json npm can't find a package.json file in your current directory.
    16 verbose exit [ -4058, true ]
     the errors in visual studio 2015 are



    1>------ Build started: Project: BlankCordovaApp1, Configuration: Debug Android ------
    1>  ------ Ensuring correct global installation of package from source package directory: E:\VISUAL STUDIO SETUP\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac
    1>  ------ Name from source package.json: vs-tac
    1>  ------ Version from source package.json: 1.0.42
    1>  ------ Package not currently installed globally.
    1>  ------ Installing globally from source package. This could take a few minutes...
    1>  Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
    1>  npm ERR! Windows_NT 6.2.9200
    1>  npm ERR! argv "C:\\Users\\gopus\\AppData\\Roaming\\Microsoft\\VisualStudio\\MDA\\vs-npm\\2.14.9\\\\node.exe" "C:\\Users\\gopus\\AppData\\Roaming\\Microsoft\\VisualStudio\\MDA\\vs-npm\\2.14.9\\node_modules\\npm\\bin\\npm-cli.js" "-g" "install" "E:\\VISUAL STUDIO SETUP\\COMMON7\\IDE\\EXTENSIONS\\APACHECORDOVATOOLS\\packages\\vs-tac" "--loglevel" "warn"
    1>  npm ERR! node v0.12.9
    1>  npm ERR! npm  v2.14.9
    1>  npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
    1>  npm ERR! self signed certificate in certificate chain
    1>  npm ERR!
    1>RUNMDAINSTALL : npm ERR! If you need help, you may report this error at:
    1>  npm ERR!     <https://github.com/npm/npm/issues>
    1>  npm ERR! Please include the following file with any support request:
    1>  npm ERR!     C:\Users\gopus\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\npm-debug.log
    1>  ------ npm install failed. Exit code: 1
    1>  ------ Package installation failed. Retrying...
    1>  npm WARN uninstall not installed in C:\Users\gopus\AppData\Roaming\npm\node_modules: "vs-tac"
    1>  npm ERR! Windows_NT 6.2.9200
    1>  npm ERR! argv "C:\\Users\\gopus\\AppData\\Roaming\\Microsoft\\VisualStudio\\MDA\\vs-npm\\2.14.9\\\\node.exe" "C:\\Users\\gopus\\AppData\\Roaming\\Microsoft\\VisualStudio\\MDA\\vs-npm\\2.14.9\\node_modules\\npm\\bin\\npm-cli.js" "-g" "install" "E:\\VISUAL STUDIO SETUP\\COMMON7\\IDE\\EXTENSIONS\\APACHECORDOVATOOLS\\packages\\vs-tac" "--loglevel" "warn"
    1>  npm ERR! node v0.12.9
    1>  npm ERR! npm  v2.14.9
    1>  npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
    1>  npm ERR! self signed certificate in certificate chain
    1>  npm ERR!
    1>RUNMDAINSTALL : npm ERR! If you need help, you may report this error at:
    1>  npm ERR!     <https://github.com/npm/npm/issues>
    1>  npm ERR! Please include the following file with any support request:
    1>  npm ERR!     C:\Users\gopus\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\npm-debug.log
    1>  ------ npm install failed. Exit code: 1
    1>  ------ Package installation failed. Retrying...
    1>  npm WARN uninstall not installed in C:\Users\gopus\AppData\Roaming\npm\node_modules: "vs-tac"
    1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(285,5): error : Error installing local npm package.

    Severity    Code    Description    Project    File    Line    Suppression State
    Error        module.js:338    BlankCordovaApp1        1    
    Warning        Acquiring Cordova Tools. Any build cancellation requests will be processed after acquisition has completed.    BlankCordovaApp1            
    Error    at        BlankCordovaApp1    C:\Users\gopus\documents\visual studio 2015\crossplatform\BlankCordovaApp1\BlankCordovaApp1\RUNMDAINSTALL    1    
    Error    at        BlankCordovaApp1    C:\Users\gopus\documents\visual studio 2015\crossplatform\BlankCordovaApp1\BlankCordovaApp1\RUNMDAINSTALL    1    
    Error        Error installing local npm package.    BlankCordovaApp1    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets    285    
    Error         throw err;    BlankCordovaApp1        1    
    Error         ^    BlankCordovaApp1        1    
    Error    BLD401    Error : BLD00401 : Could not find module 'C:\Users\gopus\AppData\Roaming\npm\node_modules\vs-tac\app.js'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.    BlankCordovaApp1        1    
    Error         at Function.Module._resolveFilename (module.js:336:15)    BlankCordovaApp1        1    
    Error         at Function.Module._load (module.js:278:25)    BlankCordovaApp1        1    
    Error         at Function.Module.runMain (module.js:501:10)    BlankCordovaApp1        1    
    Error         at startup (node.js:129:16)    BlankCordovaApp1        1    
    Error         at node.js:814:3    BlankCordovaApp1        1    
     please help me to solve the problem




    Monday, July 25, 2016 8:41 AM

All replies