Search code examples
vue.jsnpmnativescript-vue

Vue Native Script don't want to install


I want to use vue-native, and I just need to install vue-native-scripts via npm, but it doesn't want to do it.

PS E:\Coding\VueNative\YAAdmin> npm i vue-native-scripts

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! path E:\Coding\VueNative\YAAdmin\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 'E:\Coding\VueNative\YAAdmin\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!     C:\Users\Илья\AppData\Roaming\npm-cache\_logs\2019-08-10T11_41_00_816Z-debug.log

I've tried to install all dependencies manually, but it does not work.


Solution

  • Solution:

    1. Install yarn: npm install yarn -g
    2. In your project directory run yarn add native-vue-scripts

    Thats all