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

ENOENT: no such file or directory, chmod '...\node_modules\vue-native-scripts\src\bin\vue-native-script.js' #182

Closed
zyxel648 opened this issue Aug 5, 2019 · 6 comments · Fixed by #193

Comments

@zyxel648
Copy link

zyxel648 commented Aug 5, 2019

Trying to Install last version 0.1.0
npm install vue-native-scripts@0.1.0

but get following error in console:

npm ERR! path C:\sample\node_modules\vue-native-scripts\src\bin\vue-native-script.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\sample\node_modules\vue-native-scripts\src\bin\vue-native-script.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

and package did not installed

I suppose, this is cause in package.json wrong path to vue-native-script.js file:

"bin": {
    "vue-native-scripts": "./src/bin/vue-native-script.js"
  },

It should be:

"bin": {
    "vue-native-scripts": "./bin/vue-native-script.js"
  },
@zyxel648
Copy link
Author

zyxel648 commented Aug 8, 2019

Use yarn install to solve this issue

@zyxel648 zyxel648 closed this as completed Aug 8, 2019
@XavierOlland
Copy link

"It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files."

I'm sorry but "install with yarn" is not an answer when all the docs point to npm.

@zyxel648
Copy link
Author

Ok. But I'm not owner of package and this is only my solution.
Reopen issue, maybe someday it will by fixed 🤷‍♂️

@zyxel648 zyxel648 reopened this Aug 12, 2019
@XavierOlland
Copy link

Yes that's what I meant, It need a proper fix and shouldn't be closed

@envisean
Copy link

I believe @RishabhKarnad has just patched it and will be releasing a fix soon. Check #191

gauravprwl14 added a commit that referenced this issue Aug 14, 2019
Release tag v0.1.2 -> fix Github Issue regarding the vue-native-script path(#182 and #191)
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

Successfully merging a pull request may close this issue.

4 participants
@envisean @zyxel648 @XavierOlland and others