Closed marco-gallinari closed 9 years ago
@marco-gallinari this looks like it's caused by the NODE_PATH, what is your NODE_PATH set to (if at all) ?
echo $NODE_PATH
@pilsy you're right, my env variables were missing NODE_PATH variable. I've added it to /etc/environment but unfortunately the error is still there...
⇒ echo $NODE_PATH
/usr/local/lib/node_modules
⇒ clever install clever-odm
Attempting to install clever-odm...
├── Searching for modules...
├── Searching NPM...
├── Searching Bower...
├── ⚠ Installing clever-odm...
├── Installing NPM modules for clever-odm...
✔ Successfully installed clever-odm...
├── Installing bundledDependencies...
├── ⚠ Running grunt tasks for module clever-odm...
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'utils'
Warning: Task "readme" not found. Use --force to continue.
Aborted due to warnings.
✔ Successfully installed.
So by the looks of it you have not correctly set your NODE_PATH, take a look at http://cleverstack.io/documentation/backend/#backend-magic-modules for details.
export NODE_PATH=./lib/:./modules/:$NODE_PATH
will work for you
Overall this is still an issue, you should not have to set your NODE_PATH for clever commands, i'm taking a look at it now...
Thank you, this fixed my problems.
My two cents, this issue appeared in the last 15 days, since I was able to use the cli without errors on 28th feb.
Thanks @marco-gallinari, i just fixed the issue :+1:
After init app, grunt tasks fail installing standard backend modules.