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
{{ message }}
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
I freshly published a binary tool to help me with my projects (https://www.npmjs.com/package/@telokys/easy-typescript).
The code source can be found there if need be.
I expected to be able to run npx @telokys/easy-typescript in order to easily run my bin without even installing it.
Instead of running my script, npx opens the build/src/bin.js file inside my VSCode without executing it.
It stills prints npx: installed 12 in 4.738s but doesn't execute anything.
I tried using npx -p @telokys/easy-typescript easy-typescript but the exact same behavior occurred.
npx works fine for anything else and I just updated it (using npm i -g npm@latest) to version 6.14.2.
As a side note, I also get an annoying error about rimraf:
npx: installed 12 in 4.738s
C:\Users\Telokis\AppData\Roaming\npm\node_modules\npm\node_modules\rimraf\rimraf.js:313
throw er
^
Error: ENOTEMPTY: directory not empty, rmdir 'C:\Users\Telokis\AppData\Roaming\npm-cache\_npx\1176\node_modules\@telokys\easy-typescript\build'
at Object.rmdirSync (fs.js:769:3)
at rmkidsSync (C:\Users\Telokis\AppData\Roaming\npm\node_modules\npm\node_modules\rimraf\rimraf.js:356:25)
at rmdirSync (C:\Users\Telokis\AppData\Roaming\npm\node_modules\npm\node_modules\rimraf\rimraf.js:334:7)
at rimrafSync (C:\Users\Telokis\AppData\Roaming\npm\node_modules\npm\node_modules\rimraf\rimraf.js:304:9)
at C:\Users\Telokis\AppData\Roaming\npm\node_modules\npm\node_modules\rimraf\rimraf.js:342:5
at Array.forEach (<anonymous>)
at rmkidsSync (C:\Users\Telokis\AppData\Roaming\npm\node_modules\npm\node_modules\rimraf\rimraf.js:341:26)
at rmdirSync (C:\Users\Telokis\AppData\Roaming\npm\node_modules\npm\node_modules\rimraf\rimraf.js:334:7)
at rimrafSync (C:\Users\Telokis\AppData\Roaming\npm\node_modules\npm\node_modules\rimraf\rimraf.js:304:9)
at C:\Users\Telokis\AppData\Roaming\npm\node_modules\npm\node_modules\rimraf\rimraf.js:342:5 {
errno: -4051,
syscall: 'rmdir',
code: 'ENOTEMPTY',
path: 'C:\\Users\\Telokis\\AppData\\Roaming\\npm-cache\\_npx\\1176\\node_modules\\@telokys\\easy-typescript\\build'
}
The text was updated successfully, but these errors were encountered:
What / Why
I freshly published a binary tool to help me with my projects (https://www.npmjs.com/package/@telokys/easy-typescript).
The code source can be found there if need be.
I expected to be able to run
npx @telokys/easy-typescript
in order to easily run my bin without even installing it.Instead of running my script,
npx
opens thebuild/src/bin.js
file inside my VSCode without executing it.It stills prints
npx: installed 12 in 4.738s
but doesn't execute anything.I tried using
npx -p @telokys/easy-typescript easy-typescript
but the exact same behavior occurred.npx
works fine for anything else and I just updated it (usingnpm i -g npm@latest
) to version6.14.2
.As a side note, I also get an annoying error about rimraf:
The text was updated successfully, but these errors were encountered: