'.'不被识别为内部或外部命令?
'.' is not recognized as internal or external command?
问题:
在我的 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"
},
但是当我尝试 运行 npm run pree2e:ci
时,它给我这个错误。 .' is not recognized as an internal or external command,
。我搜索了很多,但找不到正当理由。当我在 bash 上点击这个命令时,它正在工作。 ./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --versions.chrome=62.0.3202
。但是当我只是 运行 npm 运行 命令时它不起作用。有人可以帮我解决这个问题吗? .谢谢
你需要改变
"./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --versions.chrome=62.0.3202"
通过查看文档:link
"./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --versions.chrome 62.0.3202"
问题:
在我的 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"
},
但是当我尝试 运行 npm run pree2e:ci
时,它给我这个错误。 .' is not recognized as an internal or external command,
。我搜索了很多,但找不到正当理由。当我在 bash 上点击这个命令时,它正在工作。 ./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --versions.chrome=62.0.3202
。但是当我只是 运行 npm 运行 命令时它不起作用。有人可以帮我解决这个问题吗? .谢谢
你需要改变
"./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --versions.chrome=62.0.3202"
通过查看文档:link
"./node_modules/protractor/bin/webdriver-manager clean && ./node_modules/protractor/bin/webdriver-manager update --versions.chrome 62.0.3202"