Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js Windows 7上的npm更新失败:错误:找不到模块';焦油';-部分解决_Node.js_Npm - Fatal编程技术网

Node.js Windows 7上的npm更新失败:错误:找不到模块';焦油';-部分解决

Node.js Windows 7上的npm更新失败:错误:找不到模块';焦油';-部分解决,node.js,npm,Node.js,Npm,我正在尝试从Windows 7上的github工作中提取我的应用程序 节点和npm已安装,尝试在应用程序文件夹中更新npm时出现以下错误: npm ERR! Error: Cannot find module 'tar' npm ERR! at Function.Module._resolveFilename (module.js:338:15) npm ERR! at Function.Module._load (module.js:280:25) npm ERR! a

我正在尝试从Windows 7上的github工作中提取我的应用程序

节点和npm已安装,尝试在应用程序文件夹中更新npm时出现以下错误:

npm ERR! Error: Cannot find module 'tar'
npm ERR!     at Function.Module._resolveFilename (module.js:338:15)
npm ERR!     at Function.Module._load (module.js:280:25)
npm ERR!     at Module.require (module.js:364:17)
npm ERR!     at require (module.js:380:17)
npm ERR!     at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib
\utils\tar.js:13:11)
npm ERR!     at Module._compile (module.js:456:26)
npm ERR!     at Object.Module._extensions..js (module.js:474:10)
npm ERR!     at Module.load (module.js:356:32)
npm ERR!     at Function.Module._load (module.js:312:12)
npm ERR!     at Module.require (module.js:364:17)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "update"
npm ERR! cwd C:\Users\olga\Documents\GitHub\SlumSpy
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code MODULE_NOT_FOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\olga\Documents\GitHub\SlumSpy\npm-debug.log
npm ERR! not ok code 0
npm错误!错误:找不到模块“tar”
npm错误!在Function.Module.\u解析文件名(Module.js:338:15)
npm错误!在Function.Module.\u加载(Module.js:280:25)
npm错误!at Module.require(Module.js:364:17)
npm错误!根据需要(模块js:380:17)
npm错误!反对,使用flag--msvs_version=2013运行相同的npm命令就成功了


因此,我想其他许多类似的问题也可以用同样的方法解决。

您是如何安装node和npm的?msi安装程序用于WIN64,npm与之配套。