joliss / node-multidep Goto Github PK
View Code? Open in Web Editor NEWInstall and require multiple versions of a package via npm
License: MIT License
Install and require multiple versions of a package via npm
License: MIT License
I'm trying to install @babel/core
using multidep
but I'm seeing the following error:
@babel/core 7.1.0: Installing
Error: ENOENT: no such file or directory, mkdir 'node-tests/multidep_modules/@babel/core-7.1.0'
at Object.fs.mkdirSync (fs.js:872:3)
at /Users/tbieniek/Code/ember-test-selectors/node_modules/multidep/index.js:80:18
It seems that the slash in the package name is creating issues within multidep
.
This started out as a PR but I changed too much. Thanks for the code and inspiration.
Currently, attempting to install a GitHub branch will break because multidep uses the version name for the directory name. GitHub install looks like user/repo
which has a slash, which will break.
I propose specifying an array. The first value is the install target, the second is the directory suffix.
“versions”: {
// Will be installed at .multidep/mypackage-thatbranch
“mypackage”: [[“myuser/mypackage#thisbranch”, “thatbranch"]]
}
My use case is to use multidep
for installing versioned documentation. The documentation is versioned on NPM, but would like to retroactively apply documentation updates using GitHub branches.
I'm going to work on this now. Let me know if you have suggestions!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.