Skip to content

io.js v4.1.0 rpm build fail: "IOError: [Errno 2] No such file or directory: 'deps/npm/node_modules/.bin/node-gyp'" #2839

Closed
@ghost

Description

git clone -b v4.1.0 ./io.js io.js-build
cd io.js-build
git log | head
    commit b4ec2c2ab8fa53fb6e8192eed0965732d56a9160
    Author: Jeremiah Senkpiel <[email protected]>
    Date:   Tue Sep 15 16:47:47 2015 -0400

        2015-09-17, Version 4.1.0 (Stable) Release

        Notable changes:

        * buffer:
          - Buffers are now created in JavaScript, rather than C++. This increases the speed of buffer creation (Trevor Norris) https://github.com/nodejs/node/pull/2866.

    ./configure --prefix=/usr/local/iojs4 --dest-cpu=x64 --dest-os=linux
    rpmdev-setuptree
    sh -x tools/rpm/rpmbuild.sh
    ...
    installing /root/rpmbuild/BUILDROOT/node-4.1.0-1.x86_64/usr/lib/node_modules/npm/node_modules/.bin/node-gyp
    Traceback (most recent call last):
      File "tools/install.py", line 213, in <module>
        run(sys.argv[:])
      File "tools/install.py", line 207, in run
        if cmd == 'install': return files(install)
      File "tools/install.py", line 148, in files
        if 'true' == variables.get('node_install_npm'): npm_files(action)
      File "tools/install.py", line 100, in npm_files
        action(paths, target_path + dirname[9:] + '/')
      File "tools/install.py", line 79, in install
        def install(paths, dst): map(lambda path: try_copy(path, dst), paths)
      File "tools/install.py", line 79, in <lambda>
        def install(paths, dst): map(lambda path: try_copy(path, dst), paths)
      File "tools/install.py", line 71, in try_copy
        return shutil.copy2(source_path, target_path)
      File "/usr/lib64/python2.7/shutil.py", line 130, in copy2
        copyfile(src, dst)
      File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: 'deps/npm/node_modules/.bin/node-gyp'
    Makefile:63: recipe for target 'install' failed
    make: *** [install] Error 1
    error: Bad exit status from /var/tmp/rpm-tmp.ifsdaG (%install)


    RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.ifsdaG (%install)

ls -al deps/npm/node_modules/.bin/node-gyp 
    lrwxrwxrwx 1 root root 27 Sep 12 10:05 deps/npm/node_modules/.bin/node-gyp -> ../node-gyp/bin/node-gyp.js*

Metadata

Metadata

Assignees

No one assigned

    Labels

    installIssues and PRs related to the installers.npmIssues and PRs related to the npm client dependency or the npm registry.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions