Giter Site home page Giter Site logo

Install with npm FAIL about nodeunit HOT 3 CLOSED

caolan avatar caolan commented on May 27, 2024
Install with npm FAIL

from nodeunit.

Comments (3)

caolan avatar caolan commented on May 27, 2024

As I mentioned in Issue 44, I've fixed the permissions (6aa1bf9) and added an .npmignore file (973038a).

However, the install will still require sudo as it installs the nodeunit command-line tool in /usr/local/bin. If you have a suggestion for an alternative behaviour when run by a normal user then let me know, but I would imagine most users would want the command-line tool available.

from nodeunit.

Sannis avatar Sannis commented on May 27, 2024

sebascabotm, this is NPM-related issue. If you want install any package system-wide, you should run npm with sudo to install libraries/binaries to standard dirs. If you want to install package only for you current user, you can crate ~/.npmrc with something like this:
root = ~/.node_libraries
binroot = ~/bin
manroot = ~/share/man

and add /home/your_username/bin to PATH in ~/.bashrc.
See "Permission Errors" section in NPM readme: https://github.com/isaacs/npm

from nodeunit.

mreinstein avatar mreinstein commented on May 27, 2024

This issue seems to have been resolved by #44. If I'm wrong, re-open and we'll discuss.

from nodeunit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.