Community mailing list archives

community@mail.odoo.com

Re: View is broken

by
Atul
- 10/01/2015 09:38:13
Hello,

May be , You have broken npm by removing some of its dependencies.

are-we-there-yet is a dependency of npmlog which is a dependency of npm itself, and you somehow deleted it.
 The usual simple solution for such cases is reinstalling a package,
but that doesn't work if npm cannot operate.
 Fortunately, npm tarball comes prebundled with dependencies and hence installing npm from scratch is as simple as unpacking a tarball.

1) Go to the global node_modules directory (what would npm root -g print if you could run it):

$ cd /usr/lib/node_modules


2) Remove the broken npm directory or move it somewhere else (note that you might need to elevate permissions for this and the following steps):

$ mv npm /tmp

3) Download and unpack fresh npm from the registry:

 $ curl registry.npmjs.com/npm/-/npm-2.12.0.tgz |tar xz --transform="s:^package:npm:"

4) (If you are following this advice from the future) update npm:

$ npm i npm -g

At this point npm should work again.

then try that command again

Thanks
Atul


On Thursday 01 October 2015 06:34 PM, waseem shaikh wrote:
<blockquote cite="mid:CACqyijEORLdxNwddxTn6ZmpqNtUfwYWjN11a6Hnqxw888MvNgQ@mail.gmail.com" type="cite">
Hi Atul Patel,

I tried above steps, m getting below error for it,

root@adminuser-VirtualBox:/home/adminuser# sudo npm install -g -clean-css less

module.js:340
    throw err;
          ^
Error: Cannot find module 'are-we-there-yet'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:2:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

Please help!! 

Thanks,


On Thu, Oct 1, 2015 at 6:17 PM, Atul Patel <atp@tinyerp.com> wrote:
Hello  Bharat,

Try this step:

sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo npm install -g -clean-css less


Thanks
Atul



On Thursday 01 October 2015 04:58 PM, Bharat Devnani wrote:
<blockquote cite="mid:CA+CYr0bwsRLjNNnxL37dvSSGReXUJSKH0WekOt1ZvZWP30+fuQ@mail.gmail.com" type="cite">
Dear Community Members,

I have installed latest v9 on my machine, however the view is cluttered cannot see menus and forms properly, kindly suggest the solution for the same. Attaching the image.



Regards,
Bharat

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--






Best Regards,
Waseem Shaikh,
OpenERP/Odoo Developer
Mobile: +91 9975 678 121

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe