npm - 我尝试安装 enmap 并收到此错误,我不知道如何解决它
问题描述
我做了网站要求的所有事情 https://enmap.evie.dev/install,我在 Windows 上,我有模块的所有要求。
我已按照站点中的要求按顺序执行了以下命令:
npm i -g --add-python-to-path --vs2015 --production windows-build-tools
npm i -g node-gyp@latest
npm i enmap
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd C:\WINDOWS\system32\node_modules\better-sqlite3
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.2 build-release: `node-gyp rebuild --release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.2 build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\33664\AppData\Roaming\npm-cache\_logs\2021-03-25T23_05_37_116Z-debug.log
npm WARN enoent ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.2 install: `prebuild-install || npm run build-release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\33664\AppData\Roaming\npm-cache\_logs\2021-03-25T23_05_37_318Z-debug.log
解决方案
推荐阅读
- python - 蟒蛇3。如何在上下文管理器中正确引发异常以使用运算符处理它?
- cors - Microsoft Academic Search API 停止工作
- java - 为什么 Spring 安全默认重定向到 http
- php - 从表中选择数据,其中列像数组
- c# - 地图列表
列出 带有 .net 核心的自动映射器 - python - 附加结果并显示来自哪个组合?
- winforms - 如何动态获取多组 IEnumerable
- python-3.x - cv2.filter2D:如果内核大小太大,则没有结果
- php - BadMethodCallException 方法 App\Http\Controllers\TaskController::destory 不存在
- python - 当我在数据库中有确切的表结构时,为什么会出现此错误?