label-studio-frontend icon indicating copy to clipboard operation
label-studio-frontend copied to clipboard

Error installling depedencies

Open Jaisurya-actyv opened this issue 1 year ago • 5 comments

I get a series of npm errors when using npm install, starting from npm ERR! code EACCES. Yarn install too gets failed with errors. I tried cleaning running as sudo, cleaning cache, rm -rf node_modules, but nothing works.

Jaisurya-actyv avatar Feb 28 '23 13:02 Jaisurya-actyv

Any logs?

makseq avatar Mar 01 '23 03:03 makseq

➤ YN0000: ┌ Resolution step ➤ YN0060: │ @heartexlabs/label-studio@workspace:. provides react (p80ff0) with version 17.0.2, which doesn't satisfy what @wojtekmaj/enzyme-adapter-react-17 and some of its descendants request ➤ YN0060: │ @heartexlabs/label-studio@workspace:. provides react (pdaf67) with version 17.0.2, which doesn't satisfy what mobx-react and some of its descendants request ➤ YN0060: │ @heartexlabs/label-studio@workspace:. provides react (p93988) with version 17.0.2, which doesn't satisfy what react-sortable-hoc requests ➤ YN0060: │ @heartexlabs/label-studio@workspace:. provides react (p6c799) with version 17.0.2, which doesn't satisfy what react-test-renderer requests ➤ YN0060: │ @heartexlabs/label-studio@workspace:. provides react-dom (pa52c4) with version 17.0.2, which doesn't satisfy what react-sortable-hoc requests ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements for details, where is the six-letter p-prefixed code ➤ YN0000: └ Completed in 0s 507ms ➤ YN0000: ┌ Fetch step ➤ YN0000: └ Completed in 5s 494ms ➤ YN0000: ┌ Link step ➤ YN0007: │ node-sass@npm:6.0.1 must be built because it never has been before or the last one failed ➤ YN0009: │ node-sass@npm:6.0.1 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-8b8dd744/build.log) ➤ YN0000: └ Completed in 5s 352ms ➤ YN0000: Failed with errors in 11s 468ms

Jaisurya-actyv avatar Mar 02 '23 06:03 Jaisurya-actyv

Hey @Jaisurya-actyv, I hope everything is going well.

Can you run this yarn explain peer-requirements and send to me the log? Also what is the version of LS you are using?

juliosgarbi avatar Mar 15 '23 18:03 juliosgarbi

I believe #1264 is related. I was able to get the install to work using yarn v1, which is less strict about dependency version matching.

epeters3 avatar Mar 27 '23 15:03 epeters3

I have successfully built the library on macOS using yarn add @heartexlabs/label-studio. YMMV.

costika1234 avatar Apr 07 '23 17:04 costika1234