我使用下面的數據無法安裝量角器茉莉截圖記者命令
- 節點 - v6.11.3
- NPM - 3.10.10
- 量角器 - 5.1.2
當我運行命令
npm install protractor-jasmine2-screenshot-reporter --save-dev
它顯示以下錯誤
no such file or directory, open 'C:\Users\agudla\package.json'
全部輸出
C:\Users\agudla>npm install protractor-jasmine2-screenshot-reporter --save-dev
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\agudla\package.json'
C:\Users\agudla
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- [email protected]
`-- UNMET PEER DEPENDENCY [email protected]>= 4 < 6
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\agudla\package.json'
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN [email protected] requires a peer of [email protected]>= 4 < 6 but none was installed.
npm WARN agudla No description
npm WARN agudla No repository field.
npm WARN agudla No README data
npm WARN agudla No license field.
誰能幫助我如何解決這個錯誤。
你可以使用[Cliptor](https://github.com/igniteram/Cliptor.js) - 量角器的交互式cli,它爲你設置和下載這些模塊。 –