node: command not found
See original GitHub issuePhaseScriptExecution Download\ Core /Users/me/Library/Developer/Xcode/DerivedData/Ology-dyfbenzvbbghgeebclxmorqgivwr/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Script-F63FF2C51C12462600B3B8E0.sh
cd /Users/me/project/node_modules/realm/src
/bin/sh -c /Users/me/Library/Developer/Xcode/DerivedData/Ology-dyfbenzvbbghgeebclxmorqgivwr/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Script-F63FF2C51C12462600B3B8E0.sh
/Users/me/Library/Developer/Xcode/DerivedData/Ology-dyfbenzvbbghgeebclxmorqgivwr/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Script-F63FF2C51C12462600B3B8E0.sh:
line 2: node: command not found
Command /bin/sh failed with exit code 127
I get this error on a current project that I installed on a new machine.
Node was installed through nvm react-native 0.49.5 realm-js 2.0.2 Mac OS High Sierra nvm ls
-> v8.8.1
default -> 8.8.1 (-> v8.8.1)
node -> stable (-> v8.8.1) (default)
stable -> 8.8 (-> v8.8.1) (default)
iojs -> N/A (default)
lts/* -> lts/boron (-> N/A)
lts/argon -> v4.8.5 (-> N/A)
lts/boron -> v6.11.5 (-> N/A)
When I run node on the command line, it works normally.
Any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:18 (8 by maintainers)
Top Results From Across the Web
node: command not found [duplicate] - Stack Overflow
The problem is that your PATH does not include the location of the node executable. You can likely run node as " /usr/local/bin/node...
Read more >NPM Command Not Found - Linux Hint
On Windows, you may face the “npm command not found” error if the path to nodejs and npm are not added to your...
Read more >How to Fix "npm command not found" Error {Node JS}
Why NPM command is not working? ... The reason may be either the npm package is not installed, incorrectly installed or the path...
Read more >Installing Nodejs: sh: node: command not found error - Intellipaat
The command not found error you are getting because your PATH does not include the location of the node executable. So you can...
Read more >Bash: Node: Command Not Found - Medium
The fastest way to get to your environment variables is to type in the search bar in the bottom left corner of your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Oh, yeah sorry that’s probably because when you run
/bin/shfrom your terminal it’s picking up thePATHfrom the parent shell, which allows node to work.Different approach then, try (from your usual terminal where node is working):
ln -s $(which node) /usr/local/bin/nodeThat should put a symlink to node somewhere in the
PATHthatshuses. If it already exists, I’m stumped.On OSX, I installed node@8 with homebrew which points to
/usr/local/opt/node@8/bin/nodeinstead of/usr/local/bin/node.So
ln -s $(which node) /usr/local/bin/nodeas written by @rh389 does the trick!