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

having problem in Npx command . whenever i am entering Node index.js it is working otherwise lol #8

Closed
madilraza opened this issue May 4, 2020 · 2 comments

Comments

@madilraza
Copy link
Contributor

C:\Users\marsec developer\ramadan-cli>npx ramadan-cli
Error: EPERM: operation not permitted, mkdir 'C:\Users\marsec'
TypeError: Cannot read property 'get' of undefined
at errorHandler (C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\lib\utils\error-handler.js:213:18)
at C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\bin\npm-cli.js:83:20
at cb (C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\lib\npm.js:215:22)
at C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\lib\npm.js:253:24
at C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\lib\config\core.js:81:7
at Array.forEach ()
at C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\lib\config\core.js:80:13
at f (C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\node_modules\once\once.js:25:25)
at afterExtras (C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\lib\config\core.js:178:20)
at C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\node_modules\mkdirp\index.js:47:53
C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\lib\utils\error-handler.js:213
if (npm.config.get('json')) {
^

TypeError: Cannot read property 'get' of undefined
at process.errorHandler (C:\Users\marsec developer\AppData\Roaming\npm\node_modules\npx\node_modules\npm\lib\utils\error-handler.js:213:18)
at process.emit (events.js:210:5)
at process._fatalException (internal/process/execution.js:150:25)
Install for [ 'ramadan-cli@latest' ] failed with code 7

@ahmadawais
Copy link
Owner

You must be using a super old version of Node.js. Anything below v12 is not what I support nor is it officially supported.

@ahmadawais
Copy link
Owner

Stop creating multiple comments to send out multiple emails. That's not nice.

You should also use Google first to see if you can solve your problems.

Your error when I searched it on Google. The first link had a solution.

zkat/npx#100 (comment)

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