susielu / react-annotation

Use react-annotation with built-in annotation types, or extend it to make custom annotations. It is made for annotations in SVG.
http://react-annotation.susielu.com/
Apache License 2.0
396 stars 34 forks source link

Installation error #6

Closed dgwyer closed 6 years ago

dgwyer commented 6 years ago

I created a new app via create-react-app and then installed react-annotation. When I ran npm start it came up with an error. I'm on windows 10 using npm v5.6.0 and node v8.9.4.

Here is the console output after I had installed create-react-app if it helps.

PS C:\Users\David\Desktop> cd ra-test
PS C:\Users\David\Desktop\ra-test> npm i react-annotation -S
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\jest.cmd as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\jest
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\jest as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\jest
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\uglifyjs.cmd as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\uglify-js
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\uglifyjs as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\uglify-js
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\html-minifier\node_modules\.bin\uglifyjs.cmd as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\html-minifier\node_modules\uglify-js
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\html-minifier\node_modules\.bin\uglifyjs as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\html-minifier\node_modules\uglify-js
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\esparse.cmd as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\esprima
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\esvalidate.cmd as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\esprima
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\esparse as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\esprima
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\esvalidate as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\esprima
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\espree\node_modules\.bin\acorn.cmd as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\espree\node_modules\acorn
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\espree\node_modules\.bin\acorn as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\espree\node_modules\acorn
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\browserslist.cmd as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\browserslist
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\.bin\browserslist as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\browserslist
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\autoprefixer\node_modules\.bin\browserslist.cmd as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\autoprefixer\node_modules\browserslist
npm WARN rm not removing C:\Users\David\Desktop\ra-test\node_modules\autoprefixer\node_modules\.bin\browserslist as it wasn't installed by C:\Users\David\Desktop\ra-test\node_modules\autoprefixer\node_modules\browserslist
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN react-annotation@1.1.1 requires a peer of react@^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-annotation@1.1.1 requires a peer of react-dom@^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.

+ react-annotation@1.1.1
added 6 packages, removed 1045 packages and updated 16 packages in 29.55s
PS C:\Users\David\Desktop\ra-test> npm start

> ra-test@0.1.0 start C:\Users\David\Desktop\ra-test
> react-scripts start

'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ra-test@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ra-test@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\David\AppData\Roaming\npm-cache\_logs\2018-01-22T15_26_56_290Z-debug.log
PS C:\Users\David\Desktop\ra-test>
susielu commented 6 years ago

Looks like this is related to create-react-app, discussed with @dgwyer . Closing for now.