InterActionNGO / NGO-admin

Back end for NGO Aid Map
GNU Affero General Public License v3.0
2 stars 0 forks source link

grunt is failing #67

Open RBFraxinus opened 7 years ago

RBFraxinus commented 7 years ago

@dce - I created a local copy of master and merged the humanitarian-scope branch (ngo-admin repo). The form styles were off, so i ran 'npm run grunt' (and ./node_modules/.bin/grunt) to compile/copy over the latest assets (really wish this repo had asset pipeline...). It threw an error. I can't get the assets to update because of it.

Did you try this at all? Have you gotten anything similar? The styles appear to be working fine on staging though...

Here is the grunt result:

robert@sequoia:/var/www/ia/gitprojects/nam-admin$ npm run grunt

iom@2.0.0 grunt /var/www/ia/gitprojects/nam-admin grunt

(node:18058) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. Running "clean:all" (clean) task

Running "jshint:all" (jshint) task Warning: Path must be a string. Received null Use --force to continue.

Aborted due to warnings.

Execution Time (2017-09-15 19:02:47 UTC) loading tasks 6ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 22% clean:all 3ms ▇▇▇▇▇▇▇▇▇▇▇▇ 11% jshint:all 17ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 63% Total 27ms

npm ERR! code ELIFECYCLE npm ERR! errno 3 npm ERR! iom@2.0.0 grunt: grunt npm ERR! Exit status 3 npm ERR! npm ERR! Failed at the iom@2.0.0 grunt 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! /home/robert/.npm/_logs/2017-09-15T19_02_48_025Z-debug.log

dce commented 7 years ago

I'm not having similar issues. What does node -v show you?

RBFraxinus commented 7 years ago

@dce robert@sequoia:/var/www/ia/gitprojects/nam-admin$ node -v v8.4.0

dce commented 7 years ago

Ok, that's a much newer version of node than what this app is set up to use (0.10.29). You might want to check out https://github.com/creationix/nvm to manage multiple versions of node.

RBFraxinus commented 7 years ago

looks like switching node versions did the trick!