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
Some users have reported issues installing on Ubuntu due to node being registered to another package. Follow the official NodeJS docs to install NodeJS so that #!/usr/bin/env node correctly resolves.
Compiling on Windows machines requires the node-gyp prerequisites.
写在前面
机器环境描述:
window10 64位
node版本:v10.13.0
问题描述
在组件库开发的时候,需要全局安装bee-tools,用window 电脑安装的时候报错,如下图:
从图中大概可以看出是因为 node-gyp这个包的问题
之后我还尝试了一下执行了
npm run dev
,报错如下:这个图就比较明显了,意思大概是:node-sass不支持当前环境。
解决办法
1、 去 node-sass 下找到如下说明:意思大概是 环境需要依赖
node-gyp
2、 去 node-gyp 中找到如下:详情点击
意思大概是:node-gyp 安装环境需要有 python2.7和Visual C ++,gyp是一种根据c++源代码编译的工具,node-gyp就是为node编译c++扩展的时候使用的编译工具。
按照说明全局安装好 node-gyp 即可解决报错。
总结解决步骤
1、安装 python2.7 版本 和 Visual Studio Build Tools
2、全局安装 node-gyp
3、配置依赖
之后即可愉快的使用 bee-tools 了
The text was updated successfully, but these errors were encountered: