【问题标题】:Vue Native Script don't want to installVue Native Script 不想安装
【发布时间】:2019-12-17 21:23:48
【问题描述】:

我想使用vue-native,我只需要通过npm安装vue-native-scripts,但它不想这样做。

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

我已尝试手动安装所有依赖项,但它不起作用。

【问题讨论】:

  • 请不要在您的问题标题中添加“已解决”。我们可以告诉您已接受答案。
  • @KeithThompson 没问题,对不起

标签: vue.js npm nativescript-vue


【解决方案1】:

解决办法:

  1. 安装纱线:npm install yarn -g
  2. 在您的项目目录中运行yarn add native-vue-scripts

就是这样

【讨论】:

【解决方案2】:

你可以这样做

NativeScript-Vue 应用程序模板,用于使用 vue-cli (2.x) 进行快速原型设计。

yarn global add @vue/cli @vue/cli-init
vue init nativescript-vue/vue-cli-template <project-name>
cd <project-name>

【讨论】:

    猜你喜欢
    • 2019-04-13
    • 1970-01-01
    • 2019-04-27
    • 1970-01-01
    • 2020-05-04
    • 2021-11-18
    • 2019-08-02
    • 1970-01-01
    • 2020-07-29
    相关资源
    最近更新 更多