Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to view more than 1 chunk in the demo & problems installing on Windows #29

Open
TheEmbracedOne opened this issue Sep 5, 2021 · 0 comments

Comments

@TheEmbracedOne
Copy link

First and foremost, is there any way to load more than 1 chunk in the online demo?

I've tried installing it based on the readme, got node.js, extracted the textures from my 12.2 jar. npm install runs fine, npm run build-assets seems to run fine, it doesnt give me any errors just this:

> minecraft-chunk-viewer@0.0.0 build-assets C:\NAME\Minecraft Chunk Viewer\chunk viewer
> node scripts```

but `npm start` gives me an error:

```PS C:\NAME\Minecraft Chunk Viewer\chunk viewer> npm start

> minecraft-chunk-viewer@0.0.0 start C:\NAME\Minecraft Chunk Viewer\chunk viewer
> npm run link && npm run serve


> minecraft-chunk-viewer@0.0.0 link C:\NAME\Minecraft Chunk Viewer\chunk viewer
> (cd .. && rm -f node_modules && ln -s webpack/node_modules)

'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! minecraft-chunk-viewer@0.0.0 link: `(cd .. && rm -f node_modules && ln -s webpack/node_modules)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the minecraft-chunk-viewer@0.0.0 link 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\NAMEcaLaptop\AppData\Roaming\npm-cache\_logs\2021-09-05T16_17_21_231Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! minecraft-chunk-viewer@0.0.0 start: `npm run link && npm run serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the minecraft-chunk-viewer@0.0.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\NAMEcaLaptop\AppData\Roaming\npm-cache\_logs\2021-09-05T16_17_21_255Z-debug.log
PS C:\NAME\Minecraft Chunk Viewer\chunk viewer>```

so after some investigation, I tried the same in GitBash, got a slightly different error:

```> minecraft-chunk-viewer@0.0.0 link C:\NAME\Minecraft Chunk Viewer\chunk viewer
> (cd .. && rm -f node_modules && ln -s webpack/node_modules)

ln: failed to create symbolic link './node_modules': No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! minecraft-chunk-viewer@0.0.0 link: `(cd .. && rm -f node_modules && ln -s webpack/node_modules)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the minecraft-chunk-viewer@0.0.0 link 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\NAMEcaLaptop\AppData\Roaming\npm-cache\_logs\2021-09-05T16_21_54_098Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! minecraft-chunk-viewer@0.0.0 start: `npm run link && npm run serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the minecraft-chunk-viewer@0.0.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\NAMEcaLaptop\AppData\Roaming\npm-cache\_logs\2021-09-05T16_21_54_117Z-debug.log

I even tried npm start --force:

$ npm start --force
npm WARN using --force I sure hope you know what you are doing.

> minecraft-chunk-viewer@0.0.0 start C:\NAME\Minecraft Chunk Viewer\chunk viewer
> npm run link && npm run serve

npm WARN using --force I sure hope you know what you are doing.
npm WARN using --force I sure hope you know what you are doing.

> minecraft-chunk-viewer@0.0.0 link C:\NAME\Minecraft Chunk Viewer\chunk viewer
> (cd .. && rm -f node_modules && ln -s webpack/node_modules)

ln: failed to create symbolic link './node_modules': No such file or directory
npm WARN using --force I sure hope you know what you are doing.
npm WARN using --force I sure hope you know what you are doing.

> minecraft-chunk-viewer@0.0.0 serve C:\NAME\Minecraft Chunk Viewer\chunk viewer
> webpack-dev-server --progress --hot --port 3000 --open --host 0.0.0.0

The command moved into a separate package: @webpack-cli/serve
Would you like to install serve? (That will run yarn add -D @webpack-cli/serve) (yes/NO) : ```
it complains about not finding the node_modules folder but it's right there...

![image](https://user-images.githubusercontent.com/16197906/132134241-a4516bbf-1a09-4f41-907b-54d39a448e9f.png)


log:

```0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start'
1 verbose cli ]
2 info using npm@6.14.15
3 info using node@v14.17.6
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle minecraft-chunk-viewer@0.0.0~prestart: minecraft-chunk-viewer@0.0.0
6 info lifecycle minecraft-chunk-viewer@0.0.0~start: minecraft-chunk-viewer@0.0.0
7 verbose lifecycle minecraft-chunk-viewer@0.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle minecraft-chunk-viewer@0.0.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\NAME\Minecraft Chunk Viewer\chunk viewer\node_modules\.bin;C:\Users\NAMEcaLaptop\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\NAMEcaLaptop\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\PlasticSCM5\server;C:\Program Files\PlasticSCM5\client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\NAMEcaLaptop\AppData\Local\Microsoft\WindowsApps;C:\Users\NAMEcaLaptop\.dotnet\tools;C:\Users\NAMEcaLaptop\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
9 verbose lifecycle minecraft-chunk-viewer@0.0.0~start: CWD: C:\NAME\Minecraft Chunk Viewer\chunk viewer
10 silly lifecycle minecraft-chunk-viewer@0.0.0~start: Args: [ '/d /s /c', 'npm run link && npm run serve' ]
11 silly lifecycle minecraft-chunk-viewer@0.0.0~start: Returned: code: 1  signal: null
12 info lifecycle minecraft-chunk-viewer@0.0.0~start: Failed to exec start script
13 verbose stack Error: minecraft-chunk-viewer@0.0.0 start: `npm run link && npm run serve`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:400:28)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:400:28)
13 verbose stack     at maybeClose (internal/child_process.js:1055:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid minecraft-chunk-viewer@0.0.0
15 verbose cwd C:\NAME\Minecraft Chunk Viewer\chunk viewer
16 verbose Windows_NT 10.0.19043
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v14.17.6
19 verbose npm  v6.14.15
20 error code ELIFECYCLE
21 error errno 1
22 error minecraft-chunk-viewer@0.0.0 start: `npm run link && npm run serve`
22 error Exit status 1
23 error Failed at the minecraft-chunk-viewer@0.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Any help is greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant