Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目install报错 #1277

Closed
winnneror opened this issue Oct 31, 2018 · 2 comments
Closed

项目install报错 #1277

winnneror opened this issue Oct 31, 2018 · 2 comments

Comments

@winnneror
Copy link

你好,项目install报错提示 gyp verb which failed Error: not found: python2

然后继续 run dev 报错Error: Cannot find module 'node-sass'

node版本8.12 vue 2.9 npm 6.4

@PanJiaChen
Copy link
Owner

#25

@luohong123
Copy link

mac环境 npm 的时候也报错,解决方法是

sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
sudo cnpm install

下载成功后,执行 npm run dev 启动项目,项目报错

Error: EACCES: permission denied,mkdir /vue-element-admin/node_modules/_mkdirp@0.5.1@mkdirp/index.js:90
                    throw err0;

访问被拒绝
在前面加 sudo

sudo npm run dev

问题可解决,项目运行成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants