Closed
Description
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
- Ensure
vue-native-scripts
0.1.0 or 0.1.1 is a (dev-)dependency - In the Vue Native project, remove the
node_modules
directory - 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"
},