among-us-proxy
among-us-proxy copied to clipboard
Can't build non-gui version
Running the following:
git clone https://github.com/NickCis/among-us-proxy.git
cd among-us-proxy/packages/among-us-proxy
npm install
Getting the following error:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/among-us-proxy-dev-utils - Not found
npm ERR! 404
npm ERR! 404 'among-us-proxy-dev-utils@^1.1.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'among-us-proxy'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
Note I have the NODE_ENV
env var set to development, as I want to build the exe.
Changing the package.json
's contents to:
{
"name": "among-us-proxy",
"version": "1.2.0",
"description": "Proxy of the local network protocol for the Among Us game",
"main": "src/index.js",
"author": "Nicolas Cisco",
"license": "MIT",
"repository": "https://github.com/nickcis/among-us-proxy",
"scripts": {
"test": "jest",
"format": "prettier --write 'src/**/*.js'",
"make": "npm run package && zip -j dist/among-us-proxy-`node -e 'console.log(require(\"./package.json\").version)'`.zip dist/among-us-proxy.exe",
"package": "nexe src/main.js -t windows-12.9.1 -o dist/among-us-proxy.exe"
},
"files": [
"src/*",
"README.md"
],
"dependencies": {
"jest": "^26.4.2",
"node-fetch": "^2.6.0",
"simple-peerjs": "^1.0.1",
"wrtc": "^0.4.6",
"ws": "^7.3.1",
"yargs": "^15.4.1"
},
"devDependencies": {
"nexe": "^3.3.7"
},
"optionalDependencies": {
"bufferutil": "^4.0.1",
"utf-8-validate": "^5.0.2"
}
}
enables it to build and work (removing extra unnecessary dep and making nexe
hit main.js instead of index)
Note that the exe has to be moved next to the node_modules folder, and it's not necessary to package a node_modules that condains the dev dependencies (environment variable NODE_ENV=production)
Also note this has to be built on windows, otherwise you'll hit issues similar to https://github.com/NickCis/among-us-proxy/issues/11#issue-748034272
Sorry, I forgot to check this repo. ~Can you send a PR with this fix?~
Update:
You are getting that error because you have not followed the instructions on the readme:
Development
The project uses npm and lerna.
Install dependencies:
$ npm install $ npm run bootstrap
Code formatting:
$ npm run format
Packaging:
$ npm run lerna -- run make
You are getting the error of the missing among-us-proxy-dev-utils@^1.1.1
because you haven't bootstraped dependencies using lerna npm run bootstrap
. You shouldn't run npm install
inside the packages
folder.