As the subject says, I tried to install Inertia.js to use Laravel Jetstream introduced in Laravel8, but I got a checksum value error at npm install
. I got stuck a little, so make a note of the workaround.
windows 10 Pro + Homestead
Instead of npm install
on the virtual environment side, npm install
on the windows side
The Laravel source itself described in Homestead.yaml was created from the composer on the windows side.
Therefore, if you execute npm install
in the virtual environment, the checksum value comparison process will detect the discrepancy, and npm install
will not pass.
Therefore, after npm install
on the windows side where the project was created, it was reflected in the virtual environment.
The details of the error are as follows
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! code EINTEGRITY
npm ERR! sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== integrity checksum failed when using sha512: wanted sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== but got sha512-5LwJRBYSTsf4U+d4gVgHUgnLgzfvnZlYT3MGCAmo5Ghqf6dhBWlZso55WlT3XMdEsXOSNMX1utRTU6EJ+oDLIA==. (17541 bytes)
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm ERR! code EINTEGRITY
npm ERR! sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== integrity checksum failed when using sha512: wanted sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== but got sha512-szqDHaopRPF3pMsLLSULzSEo7m7wRBTixms9oeiP+tKUaGee+Hl975HufXP16ksx4Aok2wN5jMU+fCg7mr39qg==. (16372 bytes)
npm ERR! code EINTEGRITY
npm ERR! sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== integrity checksum failed when using sha512: wanted sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== but got sha512-5QUyQguLezCc99z3ZZpqQPJ4zHEtoUIGo0KTAHTkjUWUd7Gktu09CX76WMfAfKbH3eM4QKThhQqbe+1lxpZhUQ==. (2206 bytes)
npm ERR! code EINTEGRITY
npm ERR! sha512-Rvq+e1e0TFB8E8X+8MQjHSY6vtol45s5gxtLI/018UsAn2IBMmwNEZRM/h+HVnAJRHjasLIKKUO3uvoMM28LvA== integrity checksum failed when using sha512: wanted sha512-Rvq+e1e0TFB8E8X+8MQjHSY6vtol45s5gxtLI/018UsAn2IBMmwNEZRM/h+HVnAJRHjasLIKKUO3uvoMM28LvA== but got sha512-UEoXCBbu82rW04c8da9exc20RdjliJRUPT3j31I89vaGpctoPd3rfMkGVTeFLK4OjeGe3mtVidtfYJe7IDK9vg==. (156147 bytes)
npm ERR! code EINTEGRITY
npm ERR! sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= integrity checksum failed when using sha1: wanted sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= but got sha512-q0hEeHaSz6/fzu5RfePuJy6mhfNHZGrOdgOvjy7HvtxEIijggNAMMBsq3DAFxpLWvE62nFC6jQ4Xh6Scb0Meiw== sha1-wVjaknrPBcKwi1wcUKZAwpEmdZY=. (2387 bytes)
npm ERR! code EINTEGRITY
npm ERR! sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g== integrity checksum failed when using sha512: wanted sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g== but got sha512-G4Viwc4dYfmFYuxq8BKlP8GpB96iKfetBRxzufnDaD/+fBvPyJHCpUCFQvbAn6vDw54lze7W3UteDm3IIrO5PQ==. (107773 bytes)
npm ERR! code Z_DATA_ERROR
npm ERR! errno -3
npm ERR! zlib: incorrect data check
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2020-11-23T05_58_12_835Z-debug.log
Recommended Posts