Open Bebul opened 8 months ago
Sorry.
It looks it does not work on the 868240435857f9a56faf2ab2068fc993c6ee711a either.
npm install
does not end with errors, but it does not install modules/pgn-viewer/package.json
. When I try to install it the same errors happen.
So I am trying to experiment over the fresh 1d51383a978dbc9af46bb06e48e42712d8637ad2 state... When I remove the dependance line:
"chessground": "mliebelt/Chessground",
The npm install
works, but the build
fails for
Module not found: Error: Can't resolve 'chessground' in 'D:\dev\PgnViewerJS-original\src'
So, it looks like mliebelt/chessboard
relevant issue, which is only fork of the original lichess chessboard.
I have tried to run yarn install
here and it fails with the exactly the same reason:
'$npm_execpath' is not recognized as an internal or external command
When I replace the environment variable with
"prepare": "npm run compile", // instead of "prepare": "$npm_execpath run compile",
I am able to run yarn install
and process demo.html
.
I think, there are two possible ways to overcome this issue:
@mliebelt/chessboard
and use this one.mliebelt/Chessboard
cross platform
And here you are https://github.com/mliebelt/chessground/pull/1
(I think, if the PR will be accepted (please, try it) then this issue can be closed.)
Ok, I have merged your pull request. I tried some months ago to upgrade Chessground to the newest version, but failed, and did not find out the reason for that. Perhaps I will try that again, to get rid of the necessity to build Chessground on my own. For the moment, you should be able to build pgn-viewer again.
Perhaps I will try that again, to get rid of the necessity to build Chessground on my own.
It was first thing I tried too. Also failed. I will try again.
For the moment, you should be able to build pgn-viewer again.
I was able to do so using my own build, forking yours, so I expect it really should work now.
Thank you 👍
It is a fresh problem. After 1d51383a978dbc9af46bb06e48e42712d8637ad2 the
npm install
ends with errors, while when checkouting the previous commit 868240435857f9a56faf2ab2068fc993c6ee711a it works without any error.The
C:\WINDOWS\system32\cmd.exe /d /s /c $npm_execpath run compile
cannot work on Windows OS, as there should be%npm_execpath%
or something, and also this environment variable set. Maybe thepackage.json
contains more than necessary?