bkrem / react-d3-tree

:deciduous_tree: React component to create interactive D3 tree graphs
https://bkrem.github.io/react-d3-tree
MIT License
1.06k stars 268 forks source link

react-scripts: not found #452

Closed StephanPraetsch closed 8 months ago

StephanPraetsch commented 1 year ago

Hi,

I really like https://bkrem.github.io/react-d3-tree/ and I want to build something similar.

While trying to get the demo running I get an error. What am I doing wrong?

git clone https://github.com/bkrem/react-d3-tree.git
cd react-d3-tree/
npm i
npm link

then

$ npm run build && npm run build:docs && cd demo && npm run build && npm run deploy

> react-d3-tree@3.5.1 build
> rimraf lib && npm run build:cjs && npm run build:esm

> react-d3-tree@3.5.1 build:cjs
> tsc -p tsconfig.json

> react-d3-tree@3.5.1 build:esm
> tsc -p tsconfig.esm.json

> react-d3-tree@3.5.1 build:docs
> rimraf ./docs && typedoc

Using TypeScript 4.9.4 from /tmp/react-d3-tree/node_modules/typescript/lib
Warning: You are running in an unsupported TypeScript version! TypeDoc supports 3.9.x || 4.0.x
DeprecationWarning: 'isIdentifierOrPrivateIdentifier' has been deprecated since v4.2.0. Use `isMemberName` instead.
Rendering [========================================] 100%

Documentation generated at /tmp/react-d3-tree/demo/public/docs

> rd3t-demo@0.1.0 build
> react-scripts build

sh: 1: react-scripts: not found

environment

$ node --version
v19.7.0
$ npm --version
9.6.2
bkrem commented 8 months ago

Hey, sorry I didn't get back to you here in good time but the issue seems to have been that you also needed to run npm i in the demo directory since it has its own deps/node_modules