Still failed even after reinstall node and npm.
Here is the full 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' }
Vadim Kotov
7,9548 gold badges48 silver badges62 bronze badges
asked Feb 24, 2017 at 8:10
3
You are trying to run npm
in a linux platform within a Windows FAT32 folder.
/media/lt1pchanifa/B0D0-8B34/Edwin/thinkster-ng2
According to github issue, permission problems occur while trying to access Windows partition.
Try to move the project to Home directory which is EXT4 and run the command.
answered Feb 24, 2017 at 8:41
Suraj RaoSuraj Rao
29.3k11 gold badges96 silver badges103 bronze badges
5
Hi all.
On our project, we are using the AWS Lambda function written for Node.js 8.10 target platform.
And our Teamcity server is running on Windows AMI.
That is why we are using the post-install hook to change the windows bin of Sharp lib to the Linux one with such cmd:
Now I’m trying to migrate to the Node.js 10.x and the cmd:
npm install --arch=x64 --platform=linux --target=10.15.0 sharp
gives me something that I cant understood correctly:
ERR! sharp EPERM: operation not permitted, symlink 'libpng16pngconf.h' -> '...node_modulessharpvendorincludepngconf.h'
gyp ERR! configure error
gyp ERR! stack Error: Command failed: ...AppDataLocalProgramsPythonPython36-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
As I understood, it tries to load the ‘libvips’ and build the bin on my local Windows PC using Python for Linux one?
Does it the correct way to install Sharp lib and how it would be on Teamcity.
Or there is another correct way to do this migration?
Issue
I get these errors when running npm install on Termux (Android). Any solution?
I get these errors when running npm install on Termux (Android). Any solution?
$ npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"android","arch":"arm64"})
npm ERR! path ../@babel/parser/bin/babel-parser.js
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall symlink
npm ERR! Error: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/storage/emulated/0/web/tbcians/node_modules/.bin/parser'
npm ERR! { [OperationalError: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/storage/emulated/0/web/tbcians/node_modules/.bin/parser']
npm ERR! cause:
npm ERR! { [Error: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/storage/emulated/0/web/tbcians/node_modules/.bin/parser']
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'symlink',
npm ERR! path: '../@babel/parser/bin/babel-parser.js',
npm ERR! dest: '/storage/emulated/0/web/tbcians/node_modules/.bin/parser' },
npm ERR! stack:
npm ERR! "Error: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/storage/emulated/0/web/tbcians/node_modules/.bin/parser'",
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'symlink',
npm ERR! path: '../@babel/parser/bin/babel-parser.js',
npm ERR! dest: '/storage/emulated/0/web/tbcians/node_modules/.bin/parser' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /data/data/com.termux/files/home/.npm/_logs/2019-04-21T09_30_40_780Z-debug.log
$
Solution
Android does not allow symlinks to exist in the Internal Shared storage, simply moving the directory web
from your Internal Storage to the Termux home directory which lies in the data partition, will solve your error. In order to do this, simply use the command mv -r /sdcard/web ~
. Note that this will move your directory named web
to /data/data/com.termux/files/home/web
.
Answered By — hewhomustnotbenamed
Answer Checked By — Cary Denson (WPSolving Admin)
I’m trying to copy one directory to an ext4 filesystem on a Veracrypt encrypted USB stick. The command I used was:
cp -aL /source /destination
I’ve also tried:
cp -ad /source /destination
… but I get back:
cp: cannot create symbolic link ‘/xyz/pdq’: Operation not permitted
I looked at the problem links and they don’t link outside the copied directory tree. Why is this happening?
Jeff Schaller♦
65.2k34 gold badges106 silver badges240 bronze badges
asked Jan 11, 2016 at 16:45
0
Just for you I played with Veracrypt(never heard the name before :D).
Have you formatted the drive as FAT? Then thats your problem. When Veracrypt asks you, format it as NTFS instead of FAT and then try again.
FAT32 unfortunately does not support owner, permissions or symlinks. That is why you are getting an Operation not permitted
error. Note that this error is not “permission denied”: “operation not permitted” often means “operation not supported”, i.e. nobody can do this.
answered Jan 11, 2016 at 19:09
4