Skip to content

Commit 39f7016

Browse files
committed
Solve issue with mac and npm.
1 parent e3a6bab commit 39f7016

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/metacall-environment.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ sub_nodejs(){
512512
echo "-DNodeJS_EXECUTABLE=$NODE_PREFIX/bin/node" >> $CMAKE_CONFIG_PATH
513513
# echo "-DNodeJS_INCLUDE_DIR=$NODE_PREFIX/include/node" >> $CMAKE_CONFIG_PATH
514514
# echo "-DNodeJS_LIBRARY=$NODE_PREFIX/lib/libnode.93.dylib" >> $CMAKE_CONFIG_PATH
515+
516+
# Configure NPM path
517+
echo "-DNPM_ROOT=$NODE_PREFIX/bin" >> $CMAKE_CONFIG_PATH
515518
fi
516519
}
517520

0 commit comments

Comments
 (0)