Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yankee14 opened this issue Nov 13, 2017 · 1 comment
Open

Comments

@yankee14
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants