Skip to content

Installing old node version fails on python #749

@benjreinhart

Description

@benjreinhart

I'm trying to install an old node version (14.9.0). I get the following error during the install:

$ nodenv install 14.9.0
Downloading node-v14.9.0.tar.gz...
-> https://nodejs.org/dist/v14.9.0/node-v14.9.0.tar.gz

WARNING: node-v14.9.0 is in LTS Maintenance mode and nearing its end of life.
It only receives *critical* security updates, *critical* bug fixes and documentation updates.

Installing node-v14.9.0...

BUILD FAILED (OS X 12.0.1 using node-build 4.9.78)

Inspect or clean up the working tree at /var/folders/fw/p2ys8vc153s8mw1bhl_cw2pm0000gn/T/node-build.20220426120212.89615.BZGw5S
Results logged to /var/folders/fw/p2ys8vc153s8mw1bhl_cw2pm0000gn/T/node-build.20220426120212.89615.log

Last 10 log lines:
  File "tools/install.py", line 76, in install
    try_copy(path, dst)
  File "tools/install.py", line 66, in try_copy
    return shutil.copy2(source_path, target_path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 153, in copy2
    copyfile(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 96, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'out/Release/node'
make: *** [install] Error 1

Looking at the temp log file:

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
Node.js configure: Found Python 2.7.18...
Error running GYP
make -C out BUILDTYPE=Release V=0
make[1]: Nothing to be done for `all'.
if [ ! -r node -o ! -L node ]; then \
	  ln -fs out/Release/node node; fi
make -C out BUILDTYPE=Release V=0
make[1]: Nothing to be done for `all'.
if [ ! -r node -o ! -L node ]; then \
	  ln -fs out/Release/node node; fi
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python tools/install.py install '' '/Users/benjaminreinhart/.nodenv/versions/14.9.0'
installing /Users/benjaminreinhart/.nodenv/versions/14.9.0/bin/node
Traceback (most recent call last):
  File "tools/install.py", line 239, in <module>
    run(sys.argv[:])
  File "tools/install.py", line 233, in run
    if cmd == 'install': return files(install)
  File "tools/install.py", line 141, in files
    action([output_prefix + output_file], 'bin/' + output_file)
  File "tools/install.py", line 76, in install
    try_copy(path, dst)
  File "tools/install.py", line 66, in try_copy
    return shutil.copy2(source_path, target_path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 153, in copy2
    copyfile(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 96, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'out/Release/node'
make: *** [install] Error 1

Some notes:

  • I'm on macOS 12.0.1 with M1 chip
  • I do have xcode developer tools installed
  • Installing new node versions (e.g., 15 and onwards) is working fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions