OmniSharp / generator-aspnet

yo generator for ASP.NET Core
877 stars 168 forks source link

generator-aspnet fails to install #800

Closed thomasmarkiewicz closed 8 years ago

thomasmarkiewicz commented 8 years ago

Short issue description

generator-aspnet fails to install

Expected behavior

installs without errors

Actual behavior

thomas.markiewicz@GXLT017074MAC C:\Users\thomas.markiewicz.COYOTELOGISTICS
> npm install -g generator-aspnet
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
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" "-g" "generator-aspnet"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! file C:\Users\thomas.markiewicz.COYOTELOGISTICS\AppData\Roaming\npm-cache\textextensions\1.0.2\package\package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token 's' at 1:2
npm ERR!  status: SUCCESS]
npm ERR!  ^
npm ERR! File: C:\Users\thomas.markiewicz.COYOTELOGISTICS\AppData\Roaming\npm-cache\textextensions\1.0.2\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\thomas.markiewicz.COYOTELOGISTICS\npm-debug.log

It looks like this file:

C:\Users\thomas.markiewicz.COYOTELOGISTICS\AppData\Roaming\npm-cache\textextensions\1.0.2\package\package.json

should be JSON but is instead something else:

 status: SUCCESS]

>>>  [Device Install (Hardware initiated) - PCI\VEN_1AB8&DEV_4005&SUBSYS_04001AB8&REV_00\4&14523280&0&0008]
>>>  Section start 2016/07/01 08:25:44.559
     dvi: {Build Driver List} 08:25:44.574
     dvi:      Searching for hardware ID(s):
     dvi:           pci\ven_1ab8&dev_4005&subsys_04001ab8&rev_00
     dvi:           pci\ven_1ab8&dev_4005&subsys_04001ab8
     dvi:           pci\ven_1ab8&dev_4005&cc_030000
     dvi:           pci\ven_1ab8&dev_4005&cc_0300
     dvi:      Searching for compatible ID(s):
     dvi:           pci\ven_1ab8&dev_4005&rev_00
     dvi:           pci\ven_1ab8&dev_4005
     dvi:           pci\ven_1ab8&cc_030000
     dvi:           pci\ven_1ab8&cc_0300
     dvi:           pci\ven_1ab8
     dvi:           pci\cc_030000
     dvi:           pci\cc_0300
     dvi:      Created Driver Node:
     dvi:           HardwareID   - PCI\CC_0300
     dvi:           InfName      - C:\WINDOWS\System32\DriverStore\FileRepository\display.inf_amd64_c53a8b74688588fa\display.inf
     dvi:           DevDesc      - Microsoft Basic Display Adapter
     dvi:           Section      - MSBDA
     dvi:           Rank         - 0x00fb2006
     dvi:           Signer Score - INBOX
     dvi:           DrvDate      - 06/21/2006
     dvi:           Version      - 10.0.10586.0
     dvi:      Created Driver Node:
     dvi:           HardwareID   - PCI\VEN_1AB8&DEV_4005&SUBSYS_04001AB8
     dvi:           InfName      - C:\WINDOWS\System32\DriverStore\FileRepository\prl_dd.inf_amd64_0d0edcbfc48edb7e\prl_dd.inf
     dvi:           DevDesc      - Parallels Display Adapter (WDDM)
     dvi:           Section      - DDInstall64_6.NTamd64
     dvi:           Rank         - 0x00e00001
     dvi:           Signer Score - Authenticode
     dvi:           DrvDate      - 09/21/2015
     dvi:           Version      - 10.3.29227.0
     dvi: {Build Driver List - exit(0x00000000)} 08:25:44.606
     dvi: {DIF_SELECTBESTCOMPATDRV} 08:25:44.606
     dvi:      Using exported function 'DisplayClassInstaller' in module 'C:\WINDOWS\system32\DispCI.dll'.
     dvi:      Class installer == DispCI.dll,DisplayClassInstaller
     dvi:      Class installer: Enter 08:25:44.606
     dvi:      Class installer: Exit
     dvi:      Default installer: Enter 08:25:44.606
     dvi:           {Select Best Driver}
     dvi:          

Steps to reproduce the behavior

npm install -g generator-aspnet


OS version (Win/Mac/*Nix?)

Windows_NT 10.0.10586

Running in Bootcamp on MacBookPro

NodeJS version

node --version 
4.4.7 and 6.3.1 (that I tried, probably everything in between as well)

Yeoman version

yo --version 

1.8.4

Generator version

NPM 3.*:

npm list -g generator-aspnet

NPM 2.*:

npm ls generator-aspnet -ls=0 --long
spboyer commented 8 years ago

try a no-cache install

npm install -g generator-aspnet --no-cache
thomasmarkiewicz commented 8 years ago

That worked! Thanks @spboyer!