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

Please run "grunt build" before starting the server #8

Open
lungbubble opened this issue Aug 7, 2016 · 23 comments
Open

Please run "grunt build" before starting the server #8

lungbubble opened this issue Aug 7, 2016 · 23 comments

Comments

@lungbubble
Copy link

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' "

@bol507
Copy link

bol507 commented Aug 7, 2016

type grunt in linux

@Aidz24
Copy link

Aidz24 commented Aug 7, 2016

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.

@Cammo009
Copy link

Cammo009 commented Aug 7, 2016

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

@Azryyal
Copy link

Azryyal commented Aug 7, 2016

And if we don't have npm?

@bol507
Copy link

bol507 commented Aug 7, 2016

image

@TULOA
Copy link

TULOA commented Aug 7, 2016

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.

@Azryyal
Copy link

Azryyal commented Aug 7, 2016

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?

@bol507
Copy link

bol507 commented Aug 7, 2016

Os?

@Cammo009
Copy link

Cammo009 commented Aug 7, 2016

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

then i did Grunt build and got command not found

@Azryyal
Copy link

Azryyal commented Aug 7, 2016

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

@bol507
Copy link

bol507 commented Aug 7, 2016

http://gruntjs.com/

@Cammo009
Copy link

Cammo009 commented Aug 7, 2016

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

@MangoTheTango
Copy link

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

@Cammo009
Copy link

Cammo009 commented Aug 7, 2016

the main folder that contains the runserver.py

@Cammo009
Copy link

Cammo009 commented Aug 7, 2016

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

@MangoTheTango
Copy link

MangoTheTango commented Aug 7, 2016

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"

@Cammo009
Copy link

Cammo009 commented Aug 7, 2016

How you get grunt build to work. Please share.

@MangoTheTango
Copy link

MangoTheTango commented Aug 7, 2016

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

@Azryyal
Copy link

Azryyal commented Aug 7, 2016

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

@lungbubble
Copy link
Author

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 ]

@7ESL4
Copy link

7ESL4 commented Aug 7, 2016

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.

@lungbubble
Copy link
Author

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?

@elvquant
Copy link

elvquant commented Aug 8, 2016

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

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

9 participants