PokemonGo-Map icon indicating copy to clipboard operation
PokemonGo-Map copied to clipboard

Please run "grunt build" before starting the server

Open lungbubble opened this issue 8 years ago • 23 comments

after running install etc and then I run the runserver.py, it errors out and tells me [ MainThread][ runserver][CRITICAL] Please run "grunt build" before starting the server

I type grunt build and it says "no such file or directory: 'build' "

lungbubble avatar Aug 07 '16 04:08 lungbubble

type grunt in linux

bol507 avatar Aug 07 '16 04:08 bol507

If you're on windows. Go to your main folder and open command prompt (shift right click anywhere in the folder) and select Open Command Prompt Here. then type without the quote "npm install"

That should take care of it.

Aidz24 avatar Aug 07 '16 04:08 Aidz24

I was just about to say the same. http://puu.sh/qsvnS/131703f5c8.png

Cammo009 avatar Aug 07 '16 04:08 Cammo009

And if we don't have npm?

Azryyal avatar Aug 07 '16 04:08 Azryyal

image

bol507 avatar Aug 07 '16 04:08 bol507

NPM is required and part of Node.js.

Should hopefully just have to install Node.js for your version of OS and then the NPM Install like stated above.

TULOA avatar Aug 07 '16 04:08 TULOA

Again, it would be helpful if this were in a README or in the wiki (which is blank). Where do I get Node.js from?

Azryyal avatar Aug 07 '16 04:08 Azryyal

Os?

bol507 avatar Aug 07 '16 04:08 bol507

I installed Node.js and still nothing. I also tried. npm install npm -g

then i did Grunt build and got command not found

Cammo009 avatar Aug 07 '16 04:08 Cammo009

Found it: https://nodejs.org/en/download/

Azryyal avatar Aug 07 '16 04:08 Azryyal

http://gruntjs.com/

bol507 avatar Aug 07 '16 04:08 bol507

ok that got me this. http://puu.sh/qsvUZ/102f39b540.png

Cammo009 avatar Aug 07 '16 04:08 Cammo009

im sorry, im kinda new at this, what folder do i shift + right click in? and what is the exact command to install npm

MangoTheTango avatar Aug 07 '16 04:08 MangoTheTango

the main folder that contains the runserver.py

Cammo009 avatar Aug 07 '16 04:08 Cammo009

Im going to retry this. https://www.youtube.com/watch?v=RJKAulPCkRI

Cammo009 avatar Aug 07 '16 04:08 Cammo009

alright i got the grunt build command to work, but now when i run the whole thing with google maps api and such, i get "exception while downloading map" "search step 1 area download failed"

MangoTheTango avatar Aug 07 '16 04:08 MangoTheTango

How you get grunt build to work. Please share.

Cammo009 avatar Aug 07 '16 04:08 Cammo009

okay, so first i downloaded the NPM thing from https://nodejs.org/en/download/. Next i did the npm install command, and it ran something and automatically ran grunt build with it. ALSO make sure you are running your cmd as admin

MangoTheTango avatar Aug 07 '16 04:08 MangoTheTango

Created pull request #10 to cover at least the Windows users on this thread.

Azryyal avatar Aug 07 '16 04:08 Azryyal

downloaded NPM. Went to runserver.py folder, typed npm install. Nothing. Went to nodejs folder, typed npm install...went through some stuff it all failed. "npm ERR! install Couldn't read dependcies" etc etc, all the way down.

Turns out it wanted some json file in the main NPM folder, not the subfolder, so I just copied it. Did npm install again, it went through quite a bit, then gave me the following:

46953 error Windows_NT 6.1.7601 46954 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" 46955 error node v4.4.7 46956 error npm v2.15.8 46957 error code ELIFECYCLE 46958 error [email protected] prepublish: node bin/npm-cli.js prune --prefix=. --no-global && rimraf test/*/*/node_modules && make doc-clean && make -j4 doc 46958 error Exit status 1 46959 error Failed at the [email protected] prepublish script 'node bin/npm-cli.js prune --prefix=. --no-global && rimraf test///node_modules && make doc-clean && make -j4 doc'. 46959 error This is most likely a problem with the npm package, 46959 error not with npm itself. 46959 error Tell the author that this fails on your system: 46959 error node bin/npm-cli.js prune --prefix=. --no-global && rimraf test///node_modules && make doc-clean && make -j4 doc 46959 error You can get information on how to open an issue for this project with: 46959 error npm bugs npm 46959 error Or if that isn't available, you can get their info via: 46959 error 46959 error npm owner ls npm 46959 error There is likely additional logging output above. 46960 verbose exit [ 1, true ]

lungbubble avatar Aug 07 '16 04:08 lungbubble

I'm stuck on running Grunt. If I just run the javascript is says Line:1 Char: 1 Error 'module is undefined' Code: 800A1391 Source: Microsoft JScript runtime error

If I run npm install, I get the above error.

7ESL4 avatar Aug 07 '16 23:08 7ESL4

Can someone please help me with this grunt build stuff? I've tried installing the npm, etc, this whole thing seems like just a mess. Even when grunt build works, am I supposed to do it in the folder of this "grunt" thing, or in the folder of the runserver.py, and if its in the latter, do I need to type "grunt build runserver.py" or something?

lungbubble avatar Aug 08 '16 01:08 lungbubble

Had running PGM correctly before Niantic changed the API ... Want to upgrade ...

"sudo pip install --no-cache-dir -r requirements.txt" ... completely OK!

Raspbian "Linux raspberrypi 4.1.13+ #826 PREEMPT Fri Nov 13 20:13:22 GMT 2015 armv6l GNU/Linux"

$ sudo npm install -g grunt-cli npm http GET https://registry.npmjs.org/grunt-cli

npm ERR! Error: failed to fetch from registry: grunt-cli npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12 npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9) npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18) npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22) npm ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58) npm ERR! at Request.emit (events.js:88:20) npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12) npm ERR! at ClientRequest.g (events.js:156:14) npm ERR! at ClientRequest.emit (events.js:67:17) npm ERR! at HTTPParser.parserOnIncomingClient as onIncoming npm ERR! You may report this log at: npm ERR! http://bugs.debian.org/npm npm ERR! or use npm ERR! reportbug --attach /home/pi/bin/PokemonGo-Map/npm-debug.log npm npm ERR! npm ERR! System Linux 4.1.13+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "grunt-cli" npm ERR! cwd /home/pi/bin/PokemonGo-Map npm ERR! node -v v0.6.19 npm ERR! npm -v 1.1.4 npm ERR! message failed to fetch from registry: grunt-cli npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/bin/PokemonGo-Map/npm-debug.log npm not ok

elvquant avatar Aug 08 '16 08:08 elvquant