简体   繁体   English

'.' 不被识别为内部或外部命令?

[英]'.' is not recognized as internal or external command?

Problem:问题:

In my angular project, I have these flowing command in my package.json file.在我的 angular 项目中,我的 package.json 文件中有这些流动命令。

"scripts": {
    "ng": "ng",
    "start": "ng serve --open",
    "start:prod": "npm run build:prod && npm run server",
    "build": "ng build",
    "build:prod": "ng build --prod",
    "lint": "ng lint",
    "test": "ng lint && ng test --configuration=test",
    "watch": "ng test --configuration=test --browsers ChromeHeadless --watch --reporters dots",
    "e2e": "ng e2e",
    "e2e:ci": "ng e2e --webdriver-update false",
    "pree2e:ci": "./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --versions.chrome=62.0.3202",
    "ci": "npm run format:test && ng lint && ng test --configuration=test --browsers ChromeTravisCi --code-coverage && npm run e2e:ci && npm run build:prod -- --deploy-url /angular-ngrx-material-starter/ --base-href /angular-ngrx-material-starter",
    "format:write": "prettier projects/**/*.{ts,json,md,scss} --write",
    "format:test": "prettier projects/**/*.{ts,json,md,scss} --list-different",
    "release": "standard-version && git push --follow-tags origin master",
    "analyze": "npm run build:prod -- --stats-json && webpack-bundle-analyzer ./dist/angular-ngrx-material-starter/stats-es2015.json",
    "server": "node ./projects/server/server.js",
    "contributors:add": "all-contributors add",
    "contributors:generate": "all-contributors generate && node .all-contributors-html.js",
    "contributors:check": "all-contributors check"
  },

But when I try to run npm run pree2e:ci it is giving me this error.但是当我尝试运行npm run pree2e:ci时,它给了我这个错误。 .' is not recognized as an internal or external command, .' is not recognized as an internal or external command, . .' is not recognized as an internal or external command, . I search a lot but I was unable to find a valid reason.我搜索了很多,但找不到正当理由。 When I just hit this command on the bash it is working.当我在 bash 上点击这个命令时,它正在工作。 ./node_modules/protractor/bin/webdriver-manager clean &&./node_modules/protractor/bin/webdriver-manager update --versions.chrome=62.0.3202 . ./node_modules/protractor/bin/webdriver-manager clean &&./node_modules/protractor/bin/webdriver-manager update --versions.chrome=62.0.3202 But when I just run npm run command it is not working.但是当我只运行 npm 运行命令时它不起作用。 Can someone help me with this issue?有人可以帮我解决这个问题吗? . . Thank you谢谢

You need to change你需要改变

"./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --versions.chrome=62.0.3202"

By see into the documentation: link通过查看文档: 链接

"./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --versions.chrome 62.0.3202"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ng 未被识别为内部或外部命令 - ng is not recognized as an internal or external command 'ngcc' 未被识别为内部或外部命令 - 'ngcc' not recognized as internal or external command Angular教程未将“ ng”识别为内部或外部命令 - 'ng' is not recognized as an internal or external command, Angular tutorial Angular2:并发不被识别为内部或外部命令 - Angular2 : concurrent is not recognized as internal or external command ng help - 'ng' 不被识别为内部或外部命令 - ng help - 'ng' is not recognized as an internal or external command Angular初学者错误:tsc无法识别为内部或外部命令…(Webstorm - Angular beginner error: tsc is not a recognized as an internal or external command… (Webstorm 在 Windows 64 位系统上,'ng' 不被识别为内部或外部命令 - 'ng' is not recognized as an internal or external command, on windows 64 bit system “量角器”不被识别为内部或外部命令,可操作程序或批处理文件 - 'protractor' is not recognized as an internal or external command, operable program or batch file 'ng' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'ng' is not recognized as an internal or external command, operable program or batch file 'concurently' 不是内部或外部命令,也不是可运行的程序 或批处理文件 - 'concurently' is not recognized as an internal or external command, operable program or batch file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM