HashDefineElectronics / KiCad_BOM_Wizard

This is a javascript script for creating Kicad HTML BOM.
59 stars 18 forks source link

npm ERR! error rolling back Error: ENOTEMPTY: directory not empty #9

Open yankee14 opened 7 years ago

yankee14 commented 7 years ago

Hi, thanks for your tool.

I was going to try out your BOM creator, and I followed your github instructions. npm throws some errors when I type "npm install" that I can't figure out how to fix. I'm not familiar with node at all.

$ uname -a
Linux debian 4.13.0-1-amd64 #1 SMP Debian 4.13.4-2 (2017-10-15) x86_64 GNU/Linux
$ apt policy npm
npm:
  Installed: 1.4.21+ds-2
  Candidate: 1.4.21+ds-2
  Version table:
 *** 1.4.21+ds-2 100
         50 https://deb.debian.org/debian unstable/main amd64 Packages
         50 https://deb.debian.org/debian unstable/main i386 Packages
        100 /var/lib/dpkg/status
$ apt policy nodejs
nodejs:
  Installed: 4.8.4~dfsg-1
  Candidate: 4.8.4~dfsg-1
  Version table:
     6.11.4~dfsg-1 50
         50 https://deb.debian.org/debian unstable/main amd64 Packages
 *** 4.8.4~dfsg-1 1000
       1000 https://deb.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
     4.8.2~dfsg-1 750
        750 https://deb.debian.org/debian stable/main amd64 Packages

If you need the more detailed error log, let me know. Thanks for your help!

~/build/KiCad_BOM_Wizard$ npm install
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/home/yankee/build/KiCad_BOM_Wizard/node_modules/nightmare/node_modules/mkdirp'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  nightmare@2.10.0 { [Error: ENOTEMPTY: directory not empty, rmdir '/home/yankee/build/KiCad_BOM_Wizard/node_modules/nightmare/node_modules/mkdirp']
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/home/yankee/build/KiCad_BOM_Wizard/node_modules/nightmare/node_modules/mkdirp' }
npm ERR! 404 Not Found
npm ERR! 404 
npm ERR! 404 'types/node' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'electron'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 4.13.0-1-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/yankee/build/KiCad_BOM_Wizard
npm ERR! node -v v4.8.4
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR! tar.unpack untar error /home/yankee/.npm/enqueue/1.0.2/package.tgz
npm WARN deprecated ignore@2.2.19: several bugs fixed in v3.2.1
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/yankee/build/KiCad_BOM_Wizard/npm-debug.log
npm ERR! not ok code 0
bhaveshgohel commented 6 years ago

Hi could you try updating nodejs version with https://github.com/taaem/nodejs-linux-installer script and try one more time.

Don't forget to remove nodejs first before upgrading with following command: sudo apt purge nodejs