"npm install -g cordova"在Windows7上导致蓝屏崩溃 [英] "npm install -g cordova" caused blue-screen-crash on Windows7
问题描述
帮助!!我尝试从命令行安装cordova,但系统崩溃并显示蓝屏.下面的详细信息:
Help!! I tried to install cordova from command line, but the system was crashed with blue screen. Details below:
(1)我成功安装了NodeJS.我从命令行(cmd.exe)运行了C:> npm install -g cordova.它开始下载文件,大约10秒钟后,计算机崩溃并显示蓝屏,错误为"BAD_POOL_HEADER".
(1) I installed NodeJS successfully. I ran C:>npm install -g cordova from command line (cmd.exe). It started to download the files, after about 10 seconds, the computer crashed with blue screen with error of "BAD_POOL_HEADER".
(2)我的计算机已安装Windows 7 Ultimate. 64位4G内存,英特尔酷睿i3-3240.
(2) My computer has Windows 7 Ultimate installed. 64-bit, 4G memory, Intel Core i3-3240.
(3)我尝试了团队中的其他5台计算机.我有3台计算机崩溃了,并成功安装了2台计算机.我没有发现这些计算机之间有任何区别.我还执行了chkdsk,并确保没有硬盘错误.
(3) I tried other 5 computers in my team. I got 3 computers crashed, and 2 computers installed successfully. I didn't see any difference among these computers. I also executed chkdsk and ensured no hard disk error.
(4)可能的根本原因分析:我从已成功安装cordova的计算机中复制了npm文件夹,并将该文件夹粘贴到计算机中的"C:\ Users \ kevin.kong \ AppData \ Roaming \"路径下npm".我收到系统错误消息,说某些文件无法粘贴,因为它们的文件路径超过了260个限制.这是我通过npm安装时蓝屏崩溃的根本原因吗?
(4) Possible root cause analysis: I copied the npm folder from a computer which had cordova installed successfully, and pasted the folder in my computer under the path of "C:\Users\kevin.kong\AppData\Roaming\npm". I got a system error saying some files can't be pasted because their file path exceeds the limitation of 260. Would it be the root cause of the blue screen crash when I installed it via npm?
路径太长的示例:"C:\ Users \ kevin.kong \ AppData \ Roaming \ npm \ node_modules \ phonegap \ node_modules \ phonegap-build \ node_modules \ phonegap-build-api \ node_modules \ request \ node_modules \ form-data \ node_modules \ combined-stream \ node_modules \ delayed-stream \ test \ integration \ test-delayed-stream-auto-pause.js"
an example of the too-long-path: "C:\Users\kevin.kong\AppData\Roaming\npm\node_modules\phonegap\node_modules\phonegap-build\node_modules\phonegap-build-api\node_modules\request\node_modules\form-data\node_modules\combined-stream\node_modules\delayed-stream\test\integration\test-delayed-stream-auto-pause.js"
推荐答案
尝试将C:\Users\kevin.kong\AppData\Roaming\npm
映射到新的虚拟驱动器,它可能会起作用.
Try to map C:\Users\kevin.kong\AppData\Roaming\npm
to a new virtual drive, it may work.
https://superuser.com/questions/644684/mapping-drive-letters -to-local-folders
这篇关于"npm install -g cordova"在Windows7上导致蓝屏崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!