You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
vue-native-scripts
0.1.0 or 0.1.1 is a (dev-)dependencynode_modules
directorynpm install
Expected behaviour
npm install
should succeed and all dependencies should be installedObserved behaviour
The following error is thrown
Suspected reason
This is caused by an incorrect path in the
package.json
of thevue-native-scripts
package, where thebin
path is./src/bin/vue-native-script.js
while it should really be./bin/vue-native-script.js
The text was updated successfully, but these errors were encountered: