-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node_module's bin folder of window is in '/server/' issue. #69
Comments
https://github.com/npm/npm/blob/latest/lib/install.js 200 function Installer (where, dryrun, args) { 228 // FIXME: This is bad and I should feel bad. This is problem. it's known issue. if it same where with globalDir, set force true. |
FIXME: This is bad and I should feel bad. |
216 this.global = this.where === path.resolve(npm.globalDir, '..') if set --prefix option, then globalDir value set 'prefix/node_modules' folder always. |
We cannot control this issue. I will report to npm repo. |
This CL includes the follwing things. - Improve existing scripts. - Introduce |absolute| command for all platforms. - After this patch, we can add a new subcommand easily in bootstrap/command/. - Introduce very simple platform test. The test will be more improved later. - Fix a bug that executable files are located in server/ on windows (#69). - Remove unnecesary script parts in package.json - Stop to use nodemon until fixing it (#71)
This CL includes the follwing things. - Improve existing scripts. - Introduce |absolute| command for all platforms. - After this patch, we can add a new subcommand easily in bootstrap/command/. - Introduce very simple platform test. The test will be more improved later. - Fix a bug that executable files are located in server/ on windows (#69). - Remove unnecesary script parts in package.json - Stop to use nodemon until fixing it (#71)
This CL includes the follwing things. - Improve existing scripts. - Introduce |absolute| command for all platforms. - After this patch, we can add a new subcommand easily in bootstrap/command/. - Introduce very simple platform test. The test will be more improved later. - Fix a bug that executable files are located in server/ on windows (#69). - Remove unnecesary script parts in package.json - Stop to use nodemon until fixing it (#71)
This CL includes the follwing things. - Improve existing scripts. - Introduce |absolute| command for all platforms. - After this patch, we can add a new subcommand easily in bootstrap/command/. - Introduce very simple platform test. The test will be more improved later. - Fix a bug that executable files are located in server/ on windows (#69). - Remove unnecesary script parts in package.json - Stop to use nodemon until fixing it (#71)
When install npm package, npm binary file is in /server/ folder to window os.
I guess npm path refer global bin directory like below.
nodejs/.../gently-rm-linked-modules.js
nodejs/.../build.js
// if it's global, and folder is in {prefix}/node_modules,
// then bins are in {prefix}/bin
// otherwise, then bins are in folder/../.bin
var parent = pkg.name && pkg.name[0] === '@' ? path.dirname(path.dirname(folder)) : path.dirname(folder)
var gnm = global && npm.globalDir
var gtop = parent === gnm
function linkBins (pkg, folder, parent, gtop, cb) {
console.log("TWHY : linkBins parent=" + parent + ", gtop=" + gtop); //<--- gtop is true;
if (!pkg.bin || !gtop && path.basename(parent) !== 'node_modules') {
return cb()
}
var binRoot = gtop ? npm.globalBin //<--- use globanBin path.
: path.resolve(parent, '.bin')
I don't know why 'gtop' value is true. need more survey.
The text was updated successfully, but these errors were encountered: