Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

npm install error #487

Closed
zhaishuai opened this issue Oct 15, 2014 · 7 comments
Closed

npm install error #487

zhaishuai opened this issue Oct 15, 2014 · 7 comments

Comments

@zhaishuai
Copy link

When I build mapboxgl-app but XCode complian shell script Invocation error.
here is the detail:
PhaseScriptExecution Action\ "npm\ install" /Users/jszhaishuai/Library/Developer/Xcode/DerivedData/mapboxgl-app-dbktjgcdtxsdrwgbldujgtixwddt/Build/Intermediates/mapboxgl.build/Debug/npm_install.build/Script-41FF61D43C12DD341DDEF2A6.sh
cd /Users/jszhaishuai/Downloads/mapbox-gl-native-master
/bin/sh -c /Users/jszhaishuai/Library/Developer/Xcode/DerivedData/mapboxgl-app-dbktjgcdtxsdrwgbldujgtixwddt/Build/Intermediates/mapboxgl.build/Debug/npm_install.build/Script-41FF61D43C12DD341DDEF2A6.sh
env: node: No such file or directory

who can tell me how to fix it

@springmeyer
Copy link
Contributor

Make sure you've installed Node.js and that it is on your PATH. This should be happening here: https://github.com/mapbox/mapbox-gl-native/blob/master/setup-libraries.sh#L42-L49

@zhaishuai
Copy link
Author

I am sure I have installed Node.js
node version is v0.10.32

@hallahan
Copy link
Contributor

I'm having the same issue here.

PhaseScriptExecution Action\ \"npm\ install\" /Users/nick/Library/Developer/Xcode/DerivedData/mapboxgl-app-axdbkxwvpsygdfaancgceoxxlazu/Build/Intermediates/mapboxgl.build/Debug/npm_install.build/Script-41FF61D43C12DD341DDEF2A6.sh
    cd /Users/nick/code/mapbox-gl-native
    /bin/sh -c /Users/nick/Library/Developer/Xcode/DerivedData/mapboxgl-app-axdbkxwvpsygdfaancgceoxxlazu/Build/Intermediates/mapboxgl.build/Debug/npm_install.build/Script-41FF61D43C12DD341DDEF2A6.sh

env: node: No such file or directory
node -v
v0.10.25
npm -v
1.3.24

@mgraesser
Copy link

I am having the same issue.

node -v
v0.10.28

npm -v
1.4.9

using Xcode 6.0.1

Mac OS 10.9.5

@hallahan
Copy link
Contributor

Looking inside of /Users/nick/Library/Developer/Xcode/DerivedData/mapboxgl-app-axdbkxwvpsygdfaancgceoxxlazu/Build/Intermediates/mapboxgl.build/Debug/npm_install.build/Script-41FF61D43C12DD341DDEF2A6.sh i see:

#!/bin/sh
exec ./scripts/npm_install.sh /Users/nick/.nvm/v0.10.32/bin/npm
exit 1

I didn't have nvm installed, so I installed it:

npm install -g nvm

I then did a make clean and a make xproj and still had the same exact issue. I also looked in the .nvm directory and found the node exec it was looking for and executed it. It works fine...

@hallahan
Copy link
Contributor

I installed npm install -g nvm.

I went in and rm -rf /Users/nick/Library/Developer/Xcode/DerivedData/mapboxgl* and also deleted mapbox-gl-native and recloned the project.

Then, I make xproj, and the build failed, but it got further and did not have this problem.

@kkaefer
Copy link
Member

kkaefer commented Oct 31, 2014

Removed npm/node in 080c185

@kkaefer kkaefer closed this as completed Oct 31, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants