gpt4 book ai didi

reactjs - Azure Devops NPM 请将您的工作目录更改为有效目录

转载 作者:行者123 更新时间:2023-12-03 13:56:25 27 4
gpt4 key购买 nike

我正在尝试使用 npm run-script build 构建一个项目

我的package.json是这样的

{
"name": "isomorphic",
"version": "2.6.0",
"private": true,
"dependencies": {
"adal-angular": "^1.0.17",
"antd": "^3.0.3",
"antd-local-icon": "^0.1.3",
"axios": "^0.18.0",
"classnames": "^2.2.5",
"clone": "^2.1.1",
"history": "^4.6.3",
"nprogress": "^0.2.0",
"postcss-inline-rtl": "^0.9.8",
"q": "^1.5.1",
"react": "^16.2.0",
"react-adal": "^0.4.17",
"react-dom": "^16.2.0",
"react-highlight-words": "^0.16.0",
"react-intl": "^2.3.0",
"react-placeholder": "^2.0.0",
"react-redux": "^5.0.4",
"react-router": "^4.1.1",
"react-router-dom": "^4.1.0",
"react-router-redux": "^5.0.0-alpha.5",
"react-scripts": "1.0.17",
"react-sidebar": "^2.3.2",
"react-smooth-scrollbar": "^8.0.6",
"react-throttle": "^0.3.0",
"react-window-size-listener": "^1.0.10",
"redux": "^3.6.0",
"redux-devtools": "^3.3.2",
"redux-devtools-dock-monitor": "^1.1.1",
"redux-devtools-log-monitor": "^1.2.0",
"redux-saga": "^0.16.0",
"redux-thunk": "^2.2.0",
"smooth-scrollbar": "^8.2.5",
"styled-components": "^2.2.1",
"styled-theme": "^0.3.3",
"webpack-cli": "^3.2.3"
},
"devDependencies": {
"react-app-rewired": "^1.4.0",
"webpack": "^4.29.5"
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"eject": "react-scripts eject"
}
}

我的构建定义是这样的 enter image description here

但是我仍然收到此错误:Azure Devops NPM 请将工作目录更改为有效目录

最佳答案

包含 package.json 的工作文件夹字段中,您指定了文件本身,而不是文件夹路径。您只需放置包含 package.json 的文件夹路径即可。

enter image description here

关于reactjs - Azure Devops NPM 请将您的工作目录更改为有效目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55233309/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com