简体   繁体   English

如何构建离线 Reactjs 和 Nodejs 环境来开发应用程序?

[英]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.

相关问题 我正在使用Reactjs,nodejs开发应用程序。 我如何动态地连接两个不同的数据库(MySQL和Couchbase) - I am developing an application using Reactjs, nodejs. How can i connect two different databases(mysql and couchbase) dynamically 如何在 nodejs 中持久化环境变量? - how can i persist environment variables in nodejs? 离线开发html5 / nodejs / socketio - html5/nodejs/socketio developing while offline 使用ReactJS开发Chrome扩展程序时,如何快速测试更改? - How can I quickly test changes when developing a Chrome Extension using ReactJS? 如何修复我的删除按钮? Reactjs、MondogDB 和 Nodejs - How can I fix my delete button? Reactjs, MondogDB and Nodejs 如何纠正 ReactJS / NodeJS / MySQL 中的这个错误? - How can I correct this error in ReactJS / NodeJS / MySQL? 我如何从 ReactJS 访问当前 NodeJS 中的环境变量 - How can i access evironment variables in present NodeJS from ReactJS 我有一个 NodeJS 后端我正在开发与 ReactJS 前端一起工作,但我不断收到 500 错误 - I have a NodeJS backend I am developing to work alongside a ReactJS frontend but I keep getting a 500 error nodejs - 在离线服务器上安装 reactjs 应用程序的生产版本,然后设置为作为服务运行 - nodejs - install production build of reactjs app on offline server, then set up to run as a service 用于开发交互式CLI应用程序的Nodejs库/模块? - Nodejs library / module for developing interactive CLI apps?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM