Comments (8)
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.
Hi m8. I didn't realize it was possible to install nodejs/npm on portable media. That's a good advice ;)
-
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 ;)
-
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.
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.
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.
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.
@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.
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.
@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)
- npmbox offline install doesn't work
- Be able to get dependencies from a `package.json` file. HOT 2
- Add command to list contents of npmbox file. HOT 2
- New `npmunbox` option: `--scripts` HOT 4
- Pass `--proxy` and `--https-proxy` options to `npm` HOT 7
- Offline install for npmbox is failing HOT 3
- Fails to handle package.json where dependency has version spec of "4.x" HOT 5
- npmbox: using shrinkwrap to specify dependent package verisons? HOT 2
- Default should be to run installation scripts during installation
- npm packages with fwd slash = kaboom HOT 1
- Error when unboxing 'yo' HOT 1
- npmbox needs npm v5 support HOT 1
- Problem installing the npmbox HOT 7
- npmunbox error - unboxing @angular/cli
- Problems boxing gitlab
- npmbox doesn't install for all users
- package-lock.json
- npmunbox css-loader.npmbox was not installed
- canot install npmbox HOT 1
- Cannot install npmbox from npm HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npmbox.