zkat / npx

execute npm package binaries (moved)
https://github.com/npm/npx
Other
2.63k stars 105 forks source link

Npm install failure with node version 6 #212

Open hlovdal opened 6 years ago

hlovdal commented 6 years ago

Running npm install with node.js version 8 and later works fine, but fails with version 6.

Steps to reproduce:

mkdir /tmp/reproduce
cd /tmp/reproduce
wget https://nodejs.org/dist/v6.14.4/node-v6.14.4-linux-x86.tar.xz
tar xJf node-v6.14.4-linux-x86.tar.xz 
export PATH=/tmp/reproduce/node-v6.14.4-linux-x86/bin:$PATH
git clone https://github.com/zkat/npx/
cd npx
npm install

gives the following error

npm ERR! Linux 4.18.16-200.fc28.x86_64
npm ERR! argv "/tmp/reproduce/node-v6.14.4-linux-x86/bin/node" "/tmp/reproduce/node-v6.14.4-linux-x86/bin/npm" "install"
npm ERR! node v6.14.4
npm ERR! npm  v3.10.10
npm ERR! path /tmp/reproduce/npx/node_modules/.staging/@iarna/cli-066f8464
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/tmp/reproduce/npx/node_modules/.staging/@iarna/cli-066f8464' -> '/tmp/reproduce/npx/node_modules/tacks/node_modules/@iarna/cli'
npm ERR! enoent ENOENT: no such file or directory, rename '/tmp/reproduce/npx/node_modules/.staging/@iarna/cli-066f8464' -> '/tmp/reproduce/npx/node_modules/tacks/node_modules/@iarna/cli'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/reproduce/npx/npm-debug.log