apm icon indicating copy to clipboard operation
apm copied to clipboard

apm not working for Atom 1.32.1 on MacOS

Open bcowgill opened this issue 6 years ago • 0 comments

Prerequisites

  • [X] Put an X between the brackets on this line if you have done all of the following:
    • Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
    • Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
    • Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
    • Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
    • Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description

apm not working for Atom 1.32.1 on MacOS

Steps to Reproduce

  1. type the command apm in a terminal

Expected behavior: I expect the apm command to run successfully

Actual behavior:

$ apm
++ pwd -P
+ initialCwd=/Users/bcowgill
+++ dirname /usr/local/bin/apm
++ cd /usr/local/bin
++ pwd
+ scriptDir=/usr/local/bin
+ apmPath=/usr/local/bin/apm
++ dirname /usr/local/bin/apm
+ builtin cd /usr/local/bin
++ basename /usr/local/bin/apm
+ binDir=apm
++ uname -s
+ osName=Darwin
+ '[' Darwin == MINGW32_NT ']'
++ uname -r
+ [[ 17.5.0 == *-Microsoft ]]
+ nodeBin=node
+ '[' -L apm ']'
++ readlink apm
+ binDir=/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm
++ dirname /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm
+ builtin cd /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin
++ basename /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm
+ binDir=apm
+ '[' -L apm ']'
++ pwd -P
+ binDir=/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin
+ maybe_node_gyp_path=/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/../node_modules/.bin/node-gyp
+ '[' -e /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/../node_modules/.bin/node-gyp ']'
+ export ATOM_APM_ORIGINAL_PYTHON=
+ ATOM_APM_ORIGINAL_PYTHON=
++ env
++ grep -i '^npm_config_python='
+ export npm_config_python=/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/python-interceptor.sh
+ npm_config_python=/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/python-interceptor.sh
+ cliPath=/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/../lib/cli.js
++ uname -r
+ [[ 17.5.0 == *-Microsoft ]]
+ builtin cd /Users/bcowgill
+ /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/node /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/../lib/cli.js
/usr/local/bin/apm: line 64: /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/node: No such file or directory


$ ls /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin
apm
asar
cake
coffee
csonc
decompress-zip
detect-libc
mkdirp
ncp
node-gyp
nopt
npm
npx
prebuild-install
rc
rimraf
semver
sshpk-conv
sshpk-sign
sshpk-verify
uuid
which
window-size

Reproduces how often: always

Versions

ProductName: Mac OS X ProductVersion: 10.13.4 BuildVersion: 17E199

Atom : 1.32.1 Electron: 2.0.9 Chrome : 61.0.3163.100 Node : 8.9.3

$ which node
/Users/bcowgill/.nvm/versions/node/v6.11.4/bin/node
$ node --version
v6.11.4

$ /usr/local/bin/node --version
v11.1.0

Additional Information

Note that Atom itself has no problems with showing or updating the packages that are installed.

bcowgill avatar Nov 04 '18 12:11 bcowgill