我正在尝试通过"scripts": {
"start": "concurrently \"npm:start-db\" \"npm:start-react\"",
"start-react": "react-scripts start",
"start-db": "json-server --watch src/bdd.json -p 3001"
}
为我的电子应用安装npm i --save-dev concurrently
。
但是我得到这个错误:
<xpath exp="//field[@name='is_done']" position="attributes">
<attribute name="invisibl">1</attribute>
</xpath>
我确实将环境变量serialport
设置为npm i serialport
我还尝试重新安装 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v1
41 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution"
,但是它也不起作用。
有人知道其他解决方案吗?
答案 0 :(得分:-2)
确保已安装正确的本机构建工具来构建本机节点模块的最快方法是安装windows-build-tools
:
npm install --global --production windows-build-tools