[英]How can I build an Offline Reactjs and Nodejs environment for developing apps?
I need to build an offline Node.js and React.js environment for developing web apps.我需要构建一个离线 Node.js 和 React.js 环境来开发 web 应用程序。 By Offline I mean no access to internet on the machine that I will use to develop apps.
离线是指在我将用于开发应用程序的机器上无法访问互联网。 How to make it possible?
如何使它成为可能? Is it possible to download the npm packages on a machine that has Internet and copy them to the offline machine.
是否可以在有 Internet 的机器上下载 npm 包并将它们复制到离线机器上。 How would it work exactly?
它究竟是如何工作的?
I tried to copy the "create-react-app" package from the internet machine to the offline machine but it does not work there.我试图将“create-react-app”package 从互联网机器复制到离线机器,但它在那里不起作用。
Please take a look below description请看下面的描述
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: **************************
serviceWorker.unregister();
I was also facing the same issue.我也面临同样的问题。 I updated my browser to the latest version and it started working.
我将浏览器更新到最新版本并开始工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.