Closed antonharald closed 9 years ago
Hello,
As much as I would like to help you, I can't do much from what I see.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
node.js:844
var cwd = process.cwd();
^
Error: EACCES, permission denied
This seems to indicate an error on your side. Make sure to have all necessary permissions. Make sure that child processes installing also have the permissions.
Also, this is a pty.js specific issue. Which is a separate module from termrk; if needed, try asking for help on the module repo.
Hi!
I cannot get termrk installed on my Mac OS 10.8, node-gyp@3.0.3, node@4.1.2, gcc 5.2 Neither with the gui, nor with the cmd line it works. Inside the Atom Editor I get this error: (The different versions are due to the fact, that atom uses its shipped versions of the programs like node, npm..)
CXX(target) Release/obj.target/pty/src/unix/pty.o
cc1plus: error: unrecognized command line option "-std=gnu++0x" make: *\ [Release/obj.target/pty/src/unix/pty.o] Error 1 gyp ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Darwin 12.6.0 gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /private/var/folders/nl/2ppbw8fn0cjbw04pdqbxmqtr0000gn/T/apm-install-dir-115913-1173-zbvwys/node_modules/Termrk/node_modules/pty.js gyp ERR! node -v v0.10.40 gyp ERR! node-gyp -v v2.0.2 gyp ERR! not ok npm ERR! Darwin 12.6.0 npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/michael/.atom/.apm/.apmrc" "--userconfig" "/Users/michael/.atom/.apmrc" "install" "/private/var/folders/nl/2ppbw8fn0cjbw04pdqbxmqtr0000gn/T/d-115913-1173-1ta0pg/package.tgz" "--target=0.30.7" "--arch=x64" npm ERR! node v0.10.40 npm ERR! npm v2.13.3 npm ERR! code ELIFECYCLEnpm ERR! pty.js@0.2.13 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pty.js@0.2.13 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the pty.js package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls pty.js npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /private/var/folders/nl/2ppbw8fn0cjbw04pdqbxmqtr0000gn/T/apm-install-dir-115913-1173-zbvwys/npm-debug.log
When I try it in the cmd line, I get this:
~ michael$ sudo apm install termrk Installing termrk to /Users/michael/.atom/packages ✗
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
node.js:844 var cwd = process.cwd(); ^ Error: EACCES, permission denied at Function.startup.resolveArgv0 (node.js:844:23) at startup (node.js:58:13) at node.js:935:3 npm ERR! Darwin 12.6.0 npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/michael/.atom/.apm/.apmrc" "--userconfig" "/Users/michael/.atom/.apmrc" "install" "/private/tmp/d-115913-1288-xbnsoj/package.tgz" "--target=0.30.7" "--arch=x64" npm ERR! node v0.10.40 npm ERR! npm v2.13.3 npm ERR! code ELIFECYCLE
npm ERR! pty.js@0.2.13 install:
node-gyp rebuild
npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the pty.js@0.2.13 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the pty.js package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls pty.js npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /private/tmp/apm-install-dir-115913-1288-wrmr3u/npm-debug.log