我正在尝试开始使用VueJS
。我开始在WSL上使用vue-cli
,但是当我进行sudo npm install
时有很多错误。
我所做的是
sudo vue init webpack-simple vue_project
,然后移至vue_project
文件夹和sudo npm install
错误是这样的
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.7
npm ERR! Linux 4.4.0-17134-Microsoft
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! path /mnt/c/Users/username/Desktop/study/vue_django/frontend/node_modules/.staging/caniuse-lite-2eae26a2/data/features/transforms2d.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall utime
npm ERR! enoent ENOENT: no such file or directory, utime '/mnt/c/Users/username/Desktop/study/vue_django/frontend/node_modules/.staging/caniuse-lite-2eae26a2/data/features/transforms2d.js'
npm ERR! enoent ENOENT: no such file or directory, utime '/mnt/c/Users/username/Desktop/study/vue_django/frontend/node_modules/.staging/caniuse-lite-2eae26a2/data/features/transforms2d.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /mnt/c/Users/username/Desktop/study/vue_django/frontend/npm-debug.log
我做了npm cache clean
,然后尝试了但没解决问题。
我正在使用Ubuntu 18.04 btw。
有人知道如何解决?