You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to move a folder and its content to the parent folder through the CLI
move-cli ./dist/transpiled ./dist
but it returns an error
{ Error: EPERM: operation not permitted, rename 'my\project\dist\transpiled' ->'my\project\dist'
errno: -4048,
code: 'EPERM',
syscall: 'rename',
path: 'my\project\\dist\\transpiled',
dest: 'C:\\Users\\ngigou\\dev\\apps\\output-labels-backend\\dist' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! output-labels@1.0.0 obfuscate: `javascript-obfuscator ./transpiled --output dist && move-cli ./dist/transpiled ./dist`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the output-labels@1.0.0 obfuscate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ngigou\AppData\Roaming\npm-cache\_logs\2018-09-25T07_39_36_012Z-debug.log
The context
I'm transpiling source code to a "transpiled" folder. Then, I obfuscate the transpiled code within a "dist" folder (with javascript-obfuscator). The problem is that the obfuscated code goes to a sub-folder of "dist" instead of directly in "dist". I'm trying to move the content to earn one folder level.
From
|
| dist
| | transpiled
| | | my transpiled and obfuscated code
| transpiled
| src
To
|
| dist
| | my transpiled and obfuscated code
| transpiled
| src
This project just uses mv under the hood. This is only the cli layer to use it in npm scripts and stuff.
I found basically the same issue over there: Issue 21
But this repo wasn't updated for 3 years now, so I guess they won't fix that issue
Hi,
What's happening
I would like to move a folder and its content to the parent folder through the CLI
but it returns an error
The context
I'm transpiling source code to a "transpiled" folder. Then, I obfuscate the transpiled code within a "dist" folder (with javascript-obfuscator). The problem is that the obfuscated code goes to a sub-folder of "dist" instead of directly in "dist". I'm trying to move the content to earn one folder level.
From
|
| dist
| | transpiled
| | | my transpiled and obfuscated code
| transpiled
| src
To
|
| dist
| | my transpiled and obfuscated code
| transpiled
| src
The complete npm script
Information
Thanks
The text was updated successfully, but these errors were encountered: