开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
35.31k
stars
4.77k
forks
source link
npm ERR! notsup Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin"} (current: {"os":"win32","arch":"x64"}) #8498
Closed
lmm1990 closed 3 years ago
相关平台
微信小程序
复现仓库
https://github.com/lmm1990/ 小程序基础库: 无 使用框架: Vue 3
复现步骤
执行:npm install 系统:windows10 报错信息: npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin"} (current: {"os":"win32","arch":"x64"}) npm ERR! notsup Valid OS: darwin npm ERR! notsup Valid Arch: undefined npm ERR! notsup Actual OS: win32 npm ERR! notsup Actual Arch: x64
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2021-01-11T02_28_01_284Z-debug.log
package.json信息: { "name": "test", "version": "1.0.0", "private": true, "description": "test", "templateInfo": { "name": "default", "typescript": true, "css": "sass" }, "scripts": { "dev:weapp": "npm run build:weapp -- --watch", "build:weapp": "taro build --type weapp" }, "browserslist": [ "last 3 versions", "Android >= 4.1", "ios >= 8" ], "author": "", "dependencies": { "@babel/runtime": "^7.7.7", "@tarojs/cli": "3.0.23", "@tarojs/components": "3.0.23", "@tarojs/runtime": "3.0.23", "@tarojs/taro": "3.0.23", "dayjs": "^1.10.1", "taro-ui-vue3": "^1.0.0-alpha.17", "vue": "^3.0.0" }, "devDependencies": { "@antv/f2": "^3.8.1", "@babel/core": "^7.8.0", "@tarojs/mini-runner": "3.0.23", "@tarojs/webpack-runner": "3.0.23", "@types/webpack-env": "^1.13.6", "@typescript-eslint/eslint-plugin": "^2.x", "@typescript-eslint/parser": "^2.x", "@vue/compiler-sfc": "^3.0.0", "babel-preset-taro": "3.0.23", "cos-wx-sdk-v5": "^1.0.5", "eslint": "^6.8.0", "eslint-config-taro": "3.0.23", "eslint-plugin-vue": "^7.0.0", "stylelint": "9.3.0", "tim-wx-sdk": "^2.9.1", "typescript": "^3.7.0", "vue-loader": "^16.0.0-beta.8", "webpack-bundle-analyzer": "^4.3.0" } }
期望结果
不报错
实际结果
报错
环境信息