开始了一个新项目,这件事发生在我身上:
我Genymotion用作我的模拟器.不确定导致此问题的原因.
我试过了:
emulator(我剩下4.5gb)emulator,它没有.这是我的远程仓库,我使用“create-react-app”创建了项目:https : //github.com/mattfrancis888/project_2
每当我克隆项目并尝试使用 npm start 启动它时。它给了我:
'react-scripts' 不是内部或外部命令,也不是可运行的程序或批处理文件。
这是为什么?我试过:
做'npm i'
npm install react-scripts --save('react-scripts' 不被识别为内部或外部命令)
再次删除并克隆项目。
该项目在我的另一台计算机上运行(我制作远程仓库的桌面)
的文档Locu指出:
To enable access to the Data API, developers need to create a profile and obtain their unique API key.
资料来源:https : //dev.locu.com/documentation/v1/
问题是,我不确定如何在Locu中注册,没有任何注册部分。我尝试去developer portal注册,但是没有用:https : //locu.com/developers-and-partners/
问题
我在“/artists”有一个 axios 调用,它获取艺术家列表作为 JSON 数组返回。它在开发中工作。但是,在生产中,它会输出一个 HTML 元素,说明您需要启用 Javascript,因为从“/artists”返回的数据未定义(证明如下):
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="./logo192.png" />
<link rel="manifest" href="./manifest.json" />
<title>React App</title>
<link href="./static/css/main.5eece21d.chunk.css" rel="stylesheet" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script>
!(function (e) {
function t(t) {
for (var n, f, i = t[0], l = …Run Code Online (Sandbox Code Playgroud) reactjs ×2
android ×1
api ×1
apk ×1
genymotion ×1
javascript ×1
node.js ×1
npm ×1
service ×1
vercel ×1