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

npm install fails with vue-native-scripts ^0.1.0 #191

Closed
RishabhKarnad opened this issue Aug 14, 2019 · 0 comments
Closed

npm install fails with vue-native-scripts ^0.1.0 #191

RishabhKarnad opened this issue Aug 14, 2019 · 0 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@RishabhKarnad
Copy link
Contributor

npm install fails when trying to install dependencies in a Vue Native project.

This bug does not affect initial setup with Vue Native CLI (vue-native init <project_name>)
This does not happen when using yarn.

Steps to reproduce

  1. Ensure vue-native-scripts 0.1.0 or 0.1.1 is a (dev-)dependency
  2. In the Vue Native project, remove the node_modules directory
  3. Run npm install

Expected behaviour

npm install should succeed and all dependencies should be installed

Observed behaviour

The following error is thrown

npm ERR! path <path_to_project_directory>/node_modules/vue-native-scripts/src/bin/vue-native-script.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '<path_to_project_directory>/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

npm ERR! A complete log of this run can be found in:
npm ERR!     <log_file_location>

Suspected reason

This is caused by an incorrect path in the package.json of the vue-native-scripts package, where the bin path is ./src/bin/vue-native-script.js while it should really be ./bin/vue-native-script.js

"bin": {
    "vue-native-scripts": "./src/bin/vue-native-script.js"
},
@RishabhKarnad RishabhKarnad added the bug Something isn't working label Aug 14, 2019
@RishabhKarnad RishabhKarnad added the duplicate This issue or pull request already exists label Aug 14, 2019
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
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant