Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/439.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
Javascript 无法安装node.js模块_Javascript_Node.js - Fatal编程技术网

Javascript 无法安装node.js模块

Javascript 无法安装node.js模块,javascript,node.js,Javascript,Node.js,我的CI工具使用节点版本4.8.3。因此,我不得不将本地node.js从6回滚到4.8.3。现在,当我执行npm安装-g时,我看到以下错误 当我使用6x版本时,我没有遇到这个错误,但在4.8.3版本中,我遇到了。请给我一些建议 C:\Users\jasharma\gitrepo\Protractor Framework\customer-portal>npm install -g npm WARN deprecated nodemailer@0.7.1: All versions belo

我的CI工具使用节点版本4.8.3。因此,我不得不将本地node.js从6回滚到4.8.3。现在,当我执行
npm安装-g
时,我看到以下错误

当我使用6x版本时,我没有遇到这个错误,但在4.8.3版本中,我遇到了。请给我一些建议

C:\Users\jasharma\gitrepo\Protractor Framework\customer-portal>npm install -g
npm WARN deprecated nodemailer@0.7.1: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN engine selenium-webdriver@3.4.0: wanted: {"node":">= 6.9.0"} (current: {"node":"4.8.3","npm":"2.15.11"})
npm WARN peerDependencies The peer dependency karma@>=0.9 included from karma-junit-reporter will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated mimelib@0.2.19: This module is deprecated
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN engine webdriver-manager@10.3.0: wanted: {"node":">=4","npm":">=3"} (current: {"node":"4.8.3","npm":"2.15.11"})

> chromedriver@2.30.1 install C:\Users\jasharma\AppData\Roaming\npm\node_modules\npmpackages\node_modules\chromedriver
> node install.js

module.js:327
    throw err;
    ^

Error: Cannot find module '../dotjs/validate'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (C:\Users\jasharma\AppData\Roaming\npm\node_modules\npmpackages\node_modules\request\node_modules\har-validator\node_modules\ajv\lib\compile\index.js:18:25)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN optional dep failed, continuing fsevents@1.1.2
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g"
npm ERR! node v4.8.3
npm ERR! npm  v2.15.11
npm ERR! code ELIFECYCLE

npm ERR! chromedriver@2.30.1 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver@2.30.1 install script 'node install.js'.
npm ERR! This is most likely a problem with the chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs chromedriver
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls chromedriver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\jasharma\gitrepo\Protractor Framework\customer-portal\npm-debug.log

C:\Users\jasharma\gitrepo\Protractor Framework\customer-portal>
C:\Users\jasharma\gitrepo\dragrator Framework\customer portal>npm安装-g
npm警告已弃用nodemailer@0.7.1:不推荐使用4.0.1以下版本的NodeEmailr。看见https://nodemailer.com/status/
npm警告引擎硒-webdriver@3.4.0:通缉:{“节点”:“>=6.9.0”}(当前:{“节点”:“4.8.3”,“npm”:“2.15.11”})
npm WARN PEERDEpendency karma junit reporter中包含的对等依赖项karma@>=0.9将不会
npm WARN peerDependency不再自动安装,以实现peerDependency
npm 3+中的npm警告对等依赖项。您的应用程序将需要显式地依赖它。
npm警告已弃用mimelib@0.2.19:此模块已弃用
npm警告不推荐使用的节点-uuid@1.4.8:改用uuid模块
npm警告引擎webdriver-manager@10.3.0:通缉:{“节点”:“>=4”,“npm”:“>=3”}(当前:{“节点”:“4.8.3”,“npm”:“2.15.11”})
> chromedriver@2.30.1安装C:\Users\jasharma\AppData\Roaming\npm\node\u modules\npmpackages\node\u modules\chromedriver
>node install.js
module.js:327
犯错误;
^
错误:找不到模块“../dotjs/validate”
在Function.Module.\u解析文件名(Module.js:325:15)
在Function.Module.\u加载(Module.js:276:25)
at Module.require(Module.js:353:17)
根据需要(内部/module.js:12:17)
反对。(C:\Users\jasharma\AppData\Roaming\npm\node\u modules\npmpackages\node\u modules\request\node\u modules\har validator\node\u modules\ajv\lib\compile\index.js:18:25)
在模块处编译(Module.js:409:26)
在Object.Module.\u extensions..js(Module.js:416:10)
在Module.load(Module.js:343:32)
在Function.Module.\u加载(Module.js:300:12)
at Module.require(Module.js:353:17)
根据需要(内部/module.js:12:17)
npm警告已弃用minimatch@0.3.0:请更新至minimatch 3.0.2或更高版本,以避免RegExp DoS问题
npm警告可选dep失败,继续fsevents@1.1.2
npm错误!Windows NT 10.0.14393
npm错误!argv“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\bin\\npm cli.js”“install”“-g”
npm错误!节点v4.8.3
npm错误!npm v2.15.11
npm错误!代码失效循环
npm错误!chromedriver@2.30.1install:`node install.js`
npm错误!退出状态1
npm错误!
npm错误!失败chromedriver@2.30.1安装脚本“node install.js”。
npm错误!这很可能是chromedriver软件包的问题,
npm错误!与npm本身无关。
npm错误!告诉作者此操作在您的系统上失败:
npm错误!node install.js
npm错误!您可以通过以下方式获取有关如何打开此项目问题的信息:
npm错误!npm铬驱动程序
npm错误!或者,如果不可用,您可以通过以下方式获取他们的信息:
npm错误!
npm错误!npm所有者ls chromedriver
npm错误!上面可能还有其他日志输出。
npm错误!请在任何支持请求中包括以下文件:
npm错误!C:\Users\jasharma\gitrepo\dragrator Framework\customer portal\npm-debug.log
C:\Users\jasharma\gitrepo\dragrator Framework\customer portal>
以下任一项:

  • 更新CI工具,使其可以在现代版本的NodeJS上运行
  • 使用类似的工具同时安装多个版本的NodeJ

您正在安装什么?您好,my package.json中有一个模块列表,但错误出现在chromedriver上