Skip to content

"npm install -g macos-alias" also fails #11

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

Open
MatthijsKamstra opened this issue Feb 2, 2016 · 4 comments
Open

"npm install -g macos-alias" also fails #11

MatthijsKamstra opened this issue Feb 2, 2016 · 4 comments

Comments

@MatthijsKamstra
Copy link

Hi
I have an issue which is probably related to the space in my hard-drive (nodejs/node-gyp#65).
The fix normally is to install globally:
npm install -g macos-alias

But this fails also..
The npm-debug.log shows that it nan@2.2.0 is installed but when it needs to install macos-alias
291 info lifecycle macos-alias@0.2.9~install: Failed to exec install script
and starts to rollback (rollbackFailedOptional)
But besides that not helpful.

But when I look at the output from my terminal:

→ npm install -g macos-alias

> macos-alias@0.2.9 install /usr/local/lib/node_modules/macos-alias
> node-gyp rebuild

make: *** No rule to make target `../../../../../../Volumes/Data', needed by `Makefile'.  Stop.

the last line seems odd, because I was trying to stop the install from looking for my "Data HD"

@LinusU
Copy link
Owner

LinusU commented Feb 3, 2016

Hmm, that's very odd, could you try installing it locally in a path without spaces?

e.g.

cd /tmp
npm install macos-alias

@MatthijsKamstra
Copy link
Author

The same result.

I install without a spaces when I install globally otherwise my "Data HD" will break the install.
The path npm install -g macos-alias uses is /usr/local/lib/node_modules/

I have found a work-around my hard-drive-with-a-stupid-space-in-it
and documented it here: nodejs/node-gyp#65 (comment)

So if I am the only one with this problem, you can close it.
But perhaps it's interesting 'problem' to fix 😄

@orther
Copy link

orther commented Jun 29, 2016

I was having similar issues with that package on node 6.2.2 and I surprisingly got it to work by deleting the rm -rf ./node_modules/ folder and rm -rf ~/.node-gyp followed by installing npm v2 (npm install -g npm@2).

After that my installs showed the same errors but continued on and was successful.

@jraymonds86
Copy link

Having an issue installing as well -- volume space problem is NOT source:

4642 info lifecycle nan@2.4.0~install: nan@2.4.0 4643 silly lifecycle nan@2.4.0~install: no script for install, continuing 4644 silly install macos-alias@0.2.9 /usr/local/lib/node_modules/.staging/macos-alias-a78950ef 4645 info lifecycle macos-alias@0.2.9~install: macos-alias@0.2.9 4646 verbose lifecycle macos-alias@0.2.9~install: unsafe-perm in lifecycle false 4647 verbose lifecycle macos-alias@0.2.9~install: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/appdmg/node_modules/macos-alias/node_modules/.bin:/usr/local/lib/node_modules/appdmg/node_modules/.bin:/usr/local/lib/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin 4648 verbose lifecycle macos-alias@0.2.9~install: CWD: /usr/local/lib/node_modules/appdmg/node_modules/macos-alias 4649 silly lifecycle macos-alias@0.2.9~install: Args: [ '-c', 'node-gyp rebuild' ] 4650 info lifecycle macos-alias@0.2.9~install: Failed to exec install script 4651 verbose unlock done using ... 4652 silly rollbackFailedOptional Starting 4653 silly rollbackFailedOptional Finishing 4654 silly runTopLevelLifecycles Starting 4655 silly runTopLevelLifecycles Finishing 4656 silly install printInstalled 4657 verbose stack Error: macos-alias@0.2.9 install:node-gyp rebuild 4657 verbose stack spawn ENOENT

While trying to install appdmg (doing a standalone install of tacos-alias fails too)

npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
/usr/local/bin/appdmg -> /usr/local/lib/node_modules/appdmg/bin/appdmg.js

macos-alias@0.2.9 install /usr/local/lib/node_modules/appdmg/node_modules/macos-alias
node-gyp rebuild

/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: line 3: node: command not found
/usr/local/lib
└── (empty)

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "appdmg"
npm ERR! node v4.5.0
npm ERR! npm v3.10.6
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! macos-alias@0.2.9 install: node-gyp rebuild
npm ERR! spawn ENOENT
npm ERR!

jozefizso added a commit to jozefizso/node-alias that referenced this issue Jan 19, 2025
Fixes the LinusU#10 `DeprecationWarning: Buffer() is deprecated due to
security and usability issues` warning
jozefizso added a commit to jozefizso/node-alias that referenced this issue Jan 19, 2025
Fixes typo in e-mail address introduced in LinusU#11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants