Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing npm -g karma #169

Closed
sylfree9999 opened this issue Oct 26, 2015 · 1 comment
Closed

Error when installing npm -g karma #169

sylfree9999 opened this issue Oct 26, 2015 · 1 comment

Comments

@sylfree9999
Copy link

Hi all,

I got the error installing the npm karma. Here is a snap shot of the error log:

16040 silly lifecycle [email protected]preinstall: no script for preinstall, continuing
16041 info linkStuff [email protected]
16042 silly linkStuff [email protected] has C:\Program Files\nodejs\node_modules\karma\node_modules as its parent node_modules
16043 verbose linkBins [email protected]
16044 verbose linkMans [email protected]
16045 verbose rebuildBundles [email protected]
16046 info lifecycle [email protected]
install: [email protected]
16047 verbose lifecycle [email protected]install: unsafe-perm in lifecycle true
16048 verbose lifecycle [email protected]
install: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Program Files\nodejs\node_modules\karma\node_modules\bufferutil\node_modules.bin;C:\Program Files\nodejs\node_modules\karma\node_modules.bin;C:\Program Files\nodejs\node_modules.bin;C:\python3.5\Scripts;C:\python3.5;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\Spencer.Shao.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files\Java\jdk1.8.0_60\bin;C:\Program Files\Java\jdk1.8.0_60\jre\bin;E:/apache-ant-1.9.6/bin;C:\Program Files\nodejs;E:\Git\cmd;E:\android-sdk\platform-tools;E:\android-sdk\tools;C:\Users\Spencer.Shao\AppData\Local\Programs\Python\Python35-32;C:\Users\Spencer.Shao\AppData\Roaming\npm
16049 verbose lifecycle [email protected]install: CWD: C:\Program Files\nodejs\node_modules\karma\node_modules\bufferutil
16050 silly lifecycle [email protected]
install: Args: [ '/d /s /c', 'node-gyp rebuild' ]
16051 silly lifecycle [email protected]install: Returned: code: 1 signal: null
16052 info lifecycle [email protected]
install: Failed to exec install script
16053 verbose unlock done using C:\Users\Spencer.Shao\AppData\Roaming\npm-cache_locks\staging-dfd8fbf9c1feea0f.lock for C:\Program Files\nodejs\node_modules.staging
16054 silly rollbackFailedOptional Starting
16055 silly rollbackFailedOptional Finishing
16056 silly runTopLevelLifecycles Starting
16057 silly runTopLevelLifecycles Finishing
16058 silly install printInstalled
16059 verbose stack Error: [email protected] install: node-gyp rebuild
16059 verbose stack Exit status 1
16059 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:233:16)
16059 verbose stack at emitTwo (events.js:87:13)
16059 verbose stack at EventEmitter.emit (events.js:172:7)
16059 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
16059 verbose stack at emitTwo (events.js:87:13)
16059 verbose stack at ChildProcess.emit (events.js:172:7)
16059 verbose stack at maybeClose (internal/child_process.js:818:16)
16059 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
16060 verbose pkgid [email protected]
16061 verbose cwd C:
16062 error Windows_NT 10.0.10240
16063 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "karma"
16064 error node v4.1.2
16065 error npm v3.3.6
16066 error code ELIFECYCLE
16067 error [email protected] install: node-gyp rebuild
16067 error Exit status 1
16068 error Failed at the [email protected] install script 'node-gyp rebuild'.
16068 error This is most likely a problem with the bufferutil package,
16068 error not with npm itself.
16068 error Tell the author that this fails on your system:
16068 error node-gyp rebuild
16068 error You can get their info via:
16068 error npm owner ls bufferutil
16068 error There is likely additional logging output above.
16069 verbose exit [ 1, true ]

npm_error

I have tried to open the directory as said above, but I did not find the karma folder under the nodejs-->node_modules.
Any idea why this happens?

@sylfree9999
Copy link
Author

After several trials, I found out that this is because I did not install VC++ tools when installing visual studio 2015. Just install the files below, then all is working out.
vs_install vc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant