Please check out https://github.com/webpack/webpack-dev-server/pull/1668

React uses webpack-dev-server, which uses internal-ip. The internal-ip
package was fixed to work on IBM i in version 4.x. The above pull request
updates the webpack-dev-server dependency and I believe this will solve
your problem in webpack-dev-server version 3.2.0 or newer.
Right now, react-scripts has a dependency on webpack-dev-server 3.1.

Anyway, I've submitted a pull request to fix your problem. Keep an eye on
it. When it lands in a release, hopefully everything works!
Here's my PR: https://github.com/facebook/create-react-app/pull/6483




"OpenSource" <opensource-bounces@xxxxxxxxxxxxxxxxxx> wrote on 02/21/2019
01:26:58 AM:

From: "Danny Rodius" <danny.rodius@xxxxxxxxx>
To: <opensource@xxxxxxxxxxxxxxxxxx>
Date: 02/21/2019 01:27 AM
Subject: [IBMiOSS] problem installing create-react-app package
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxxxxxxxx>

Hello,



I'm trying to explore the node.js path on our iSeries.



After a couple of test we are trying to install the create-react-app
package.

However we are getting an error and the install is doing a rollback.



-bash-4.4$ npm init react-app todolist

npx: installed 63 in 7.294s



Creating a new React app in /home/RODIUSD/node_pj/todolist.



Installing packages. This might take a couple of minutes.

Installing react, react-dom, and react-scripts...



npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for internal-ip@3.0.1: wanted
{"os":"android,darwin,freebsd,linux,openbsd,sunos,win32","arch":"any"}
(current: {"os":"aix","arch":"ppc64"})

npm ERR! notsup Valid OS:
android,darwin,freebsd,linux,openbsd,sunos,win32

npm ERR! notsup Valid Arch: any

npm ERR! notsup Actual OS: aix

npm ERR! notsup Actual Arch: ppc64



npm ERR! A complete log of this run can be found in:

npm ERR! /home/RODIUSD/.npm/_logs/2019-02-21T06_51_13_953Z-debug.log



Aborting installation.

npm install --save --save-exact --loglevel error react react-dom
react-scripts has failed.



Deleting generated file... node_modules

Deleting generated file... package.json

Deleting todolist/ from /home/RODIUSD/node_pj

Done.

-bash-4.4$



Seems one dependency is not able to run on aix.



Has anyone faced this problem already and what would be the solution, if
there is one.





Best regards,

Danny



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.