Skip to content

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

Closed
@RishabhKarnad

Description

@RishabhKarnad

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"
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions