Npm install Error: EPERM: operation not allowed, symlink '../mkdirp/bin/cmd.js'

Still failed even after reinstalling node and npm.
Here is the complete error message

npm ERR! Linux 4.8.0-34-generic
npm ERR! argv "/home/lt1pchanifa/.nvm/versions/node/v6.9.3/bin/node" "/home/lt1pchanifa/.nvm/versions/node/v6.9.3/bin/npm" "install"
npm ERR! node v6.9.3
npm ERR! npm  v4.0.5
npm ERR! path ../mkdirp/bin/cmd.js
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall symlink

npm ERR! Error: EPERM: operation not permitted, symlink '../mkdirp/bin/cmd.js' -> '/media/lt1pchanifa/B0D0-8B34/Edwin/thinkster-ng2/node_modules/@angular-cli/ast-tools/node_modules/.bin/mkdirp'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, symlink '../mkdirp/bin/cmd.js' -> '/media/lt1pchanifa/B0D0-8B34/Edwin/thinkster-ng2/node_modules/@angular-cli/ast-tools/node_modules/.bin/mkdirp'
npm ERR!     at Error (native)
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../mkdirp/bin/cmd.js',
npm ERR!   dest: '/media/lt1pchanifa/B0D0-8B34/Edwin/thinkster-ng2/node_modules/@angular-cli/ast-tools/node_modules/.bin/mkdirp',
npm ERR!   parent: '@angular-cli/ast-tools' }
+4
source share
1 answer

You are trying to run npmon linux platform in the Windows FAT32 folder.

/media/lt1pchanifa/B0D0-8B34/Edwin/thinkster-ng2

According to the github problem , there are access rights issues when trying to access the Windows partition. Try moving the project to the Home directory, which is EXT4, and run the command.

+6
source

Source: https://habr.com/ru/post/1670715/


All Articles