基本上,我尝试在量角器自动化项目中使用protractor-cucumber-html-report
插件。为此,我正在安装生成黄瓜所需的npm软件包,如下所述-
npm install --save-dev protractor-cucumber-framework
npm install --save-dev cucumber
npm install --save-dev chai
npm install --save-dev chai-as-promised
npm install --save-dev @types/cucumber
npm install --save-dev @types/chai
npm install --save-dev @types/chai-as-promised
但在安装过程中,我收到以下错误:
329 verbose type range
330 verbose stack domino: No matching version found for domino@^2.0.1
330 verbose stack at pickManifest (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\npm-pick-manifest\index.js:65:11)
330 verbose stack at fetchPackument.then.packument (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\fetchers\registry\manifest.js:52:18)
330 verbose stack at tryCatcher (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
330 verbose stack at Promise._settlePromiseFromHandler (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
330 verbose stack at Promise._settlePromise (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
330 verbose stack at Promise._settlePromise0 (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
330 verbose stack at Promise._settlePromises (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
330 verbose stack at Async._drainQueue (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
330 verbose stack at Async._drainQueues (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
330 verbose stack at Immediate.Async.drainQueues (C:\Users\bkodalkar\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
330 verbose stack at runCallback (timers.js:810:20)
330 verbose stack at tryOnImmediate (timers.js:768:5)
330 verbose stack at processImmediate [as _immediateCallback] (timers.js:745:5)
331 verbose cwd C:\Source\WK.RetailInterview\WK.RetailInterview\ClientApp
332 verbose Windows_NT 6.1.7601
333 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\bkodalkar\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "@angular/cli@latest"
334 verbose node v8.11.2
335 verbose npm v5.6.0
336 error code ETARGET
337 error notarget No matching version found for domino@^2.0.1
338 error notarget In most cases you or one of your dependencies are requesting
338 error notarget a package version that doesn't exist.
338 error notarget
338 error notarget It was specified as a dependency of '@angular/platform-server'
339 verbose exit [ 1, true ]
我试过安装依赖软件包和最新的npm,但没有运气,你能帮我吗?
npm i domino@2.0.1
npm i @angular/platform-server
下面是我的package.json依赖项列表:
"dependencies": {
"@angular/animations": "6.0.0",
"@angular/common": "6.0.0",
"@angular/compiler": "6.0.0",
"@angular/core": "6.0.0",
"@angular/forms": "6.0.0",
"@angular/http": "6.0.0",
"@angular/platform-browser": "6.0.0",
"@angular/platform-browser-dynamic": "6.0.0",
"@angular/platform-server": "^2.0.1",
"@angular/router": "6.0.0",
"@nguniversal/module-map-ngfactory-loader": "^5.0.0-beta.5",
"aspnet-prerendering": "^3.0.1",
"bootstrap": "^3.3.7",
"core-js": "^2.4.1",
"domino": "2.0.1",
"jquery": "^3.3.1",
"rxjs": "^6.1.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/cli": "6.0.0",
"@angular/compiler-cli": "6.0.0",
"@angular/language-service": "6.0.0",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "2.7.2",
"@angular-devkit/build-angular": "~0.6.0"
}
运行时我还得到了一个错误(Err1):
npm install -save--dev domino@^2.0.1
但将其添加到package.json中:
"domino": "^2.0.1",
又奔平原道:
npm install
我使用npm很长一段时间了(使用Win10)-在防火墙/权限等方面没有改变任何东西,突然间我在尝试安装任何软件包时出现以下错误: C:\udemy-button>npm安装引导程序--保存npm错误!路径C:\udemy-button\node_modules\fsevents\node_modules\aws4\package.json npm err!代码EPERM npm错误!错误-4048
我是一个初学者,我正在努力学习角,所以我试图安装一个新的项目与角种子。但是当我安装npm时,我得到一个错误,我不知道是从哪里来的。我已经安装了节点。版本是5.5.0。这是我在控制台得到的错误。
安装 npm WARN checkPermissions缺少对/usr/lib/node_modules的写访问权npm err!路径/usr/lib/node_modules npm错误!代码EACCES npm错误!错误-13 npm错误!syscall访问npm错误!错误:eAcces:权限被拒绝,访问'/usr/lib/node_modules'npm错误!{错误:eAcces:权限被拒绝
我在Udemy上学习“现代React with Redux课程”,讲师要求先安装NodeJs,然后安装“npm安装-g创建React应用程序”,当我尝试运行此命令时,我遇到一个错误:- 然后我讨论了有关stackoverflow的一些问题,其中有人建议运行以下命令:- 我得到了: 然后我运行 再次命令,但仍然得到相同的错误,任何解决方案/建议?
我已经在谷歌上搜索过了,但还是不清楚。请分享你的想法。
安装节点模块时,我忘记添加的次数太多了。默认情况下是否有附加此选项的方法?这样每当我键入