Giter VIP home page Giter VIP logo

Comments (8)

arei avatar arei commented on August 27, 2024

1). You cannot just npm install package.npmbox as npm does not know what an npmbox file is. I am trying to get something similar to npmbox built into npm, but it has little to no traction at this point in time. (See https://github.com/isaacs/npm/issues/3429#issuecomment-27044292).

That said, you can simply npmunbox pacakage and it does the extraction and the install for you. This does require the npmbox itself first be installed. A work around for this requirement would be to have an installed version of npmbox on the media you are transferring the .npmbox files on, and run it from there. This is what I do in our environment.

2). Adding the --global switch pass through is in the list of things to do, but I am not putting much resources into it at this point in time, largely because I do not specifically need it. I do welcome pull requests though!

3). Super excited someone else is using npmbox. Thanks and good luck!

from npmbox.

Marcoevich avatar Marcoevich commented on August 27, 2024

Hi m8. I didn't realize it was possible to install nodejs/npm on portable media. That's a good advice ;)

  1. There are some npm packages that require to be on your system variables path. They will be a pain to use without that, so therefore it would be helpful to have a -global switch. Once you need it yourself, you will be happy that you've done it ;)

  2. I've been looking for a tool like this for a long time now. I know there once was a tool called npmzip (http://registry.npmjs.org/npmzip/-/npmzip-0.1.3.tgz) that did the trick, but unfortunately that was deleted. Are you perhaps also the author of npmzip?

Don't know if it's possible, but since npmzip no longer exists you should try to rename your project to npmzip, as it will be easier to find for people :)

I do welcome your efforts to implement this in the basic npm repo. I will remind them that many corporate environments run on local intranet networks. Installing packages with npm install is pretty difficult on those systems :)

from npmbox.

Marcoevich avatar Marcoevich commented on August 27, 2024

Forgive me, I see now that you renamed your project to npmbox :)

May I ask why you renamed it? If i'm looking for a zip tool for the node package manager then a name like npmzip would come to mind sooner than npmbox :)

from npmbox.

arei avatar arei commented on August 27, 2024

Yes, I renamed it from npmzip. I thought npmbox better described what the process was over npmzip but your point is taken. At the time I was pushing the commands box/unbox be added for npm to describe this functionality, and I really just built npmbox as an example of how it might be done.

from npmbox.

mdvanes avatar mdvanes commented on August 27, 2024

Hi, I tried npmbox for installing on an offline system, but I was deterred by having to install npm on a removable medium. This would not work for me, because I can't access removable media from the VM I'm trying to install jshint on (with npmbox). I found that it's possible to install offline packages in npm with npm install foo.tar.gz, but unfortunately you haven't packaged it (yet?). This would for sure make it much easier to install on an offline system (provided you have no dependencies yourself).

from npmbox.

arei avatar arei commented on August 27, 2024

@mdvanes I have added documentation to the readme with instructions on Installing npmbox from an npmbox file. This should help with your problem. Thus you can move both npmbox.npmbox and jshint.npmbox over to your closed system, install npmbox as described in the readme, and then use npmbox on jshint.

Please note, however, that if you do not have a means to transfer file to your closed system such as you might do with removable media, nothing I can do will let npmbox work for you.

Also, the method of installing an npm package from a .tar.gz installs only that package and does not install that packages dependencies. Thus in order to use that approach you would first need to identify and install each of the dependencies of the package you want to install and then install the package. More details can be found in the related npm feature request: [Feature] Bundle/Include Dependencies

from npmbox.

arei avatar arei commented on August 27, 2024

I am closing this ticket as I have created additional documentation answering this issue in the read me, and created another ticket for the --global issue.

from npmbox.

arei avatar arei commented on August 27, 2024

@Marcoevich Issues #3 (global install switch) has been implemented for version 0.2.0 which is now available. Let me know if you have any problems.

from npmbox.

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.