首页 文章

插件的NPM安装会导致GYP错误

提问于
浏览
0

我正在尝试为我的移动应用程序安装Share-Button插件,但是当我输入“npm i --save-dev share-button”时,我会得到一长串的GYP错误代码 . 我只是一名学生并且对编程很陌生,所以如果我的问题的答案看似简单,我道歉 . 我尝试更新Nodejs,GYP和NPM,但到目前为止还没有运气 . 这些是我得到的错误:

C:\ Users \ Marketing1-Plugged \ Documents \ App \ Soundboard> npm install share-button

gyp ERR!构建错误gyp ERR!堆栈错误:C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin \ msbuild.exe失败,退出代码:1 gyp ERR!堆栈在ChildProcess.onExit(C:\ Users \ Marketing1-Plugged \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ lib \ build.js:276:23)gyp ERR!堆栈在emitTwo(events.js:100:13)gyp ERR!在ChildProcess.emit堆栈(events.js:185:7)gyp ERR! Process.ChildProcess._handle.onexit(internal / child_process.js:200:12)gyp ERR!系统Windows_NT 10.0.10586 gyp ERR!命令“C:\ Program Files \ nodejs \ node.exe”“C:\ Users \ Marketing1-Plugged \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“rebuild “gyp ERR! cwd C:\ Users \ Marketing1-Plugged \ node_modules \ pioneer \ node_modules \ selenium-webdriver \ node_modules \ ws \ node_modules \ utf-8-validate gyp ERR! node -v v5.7.1 gyp ERR! node-gyp -v v3.3.0 gyp ERR!不行npm WARN安装:utf-8-validate@1.1.0 utf-8-validate@1.1.0 install:node-gyp rebuild npm WARN安装:utf-8-validate@1.1.0退出状态1 C:\ Users \ Marketing1-Plugged - phonegap@6.0.1 - share-button@1.0.3 | - pioneer@0.11.7 | - cucumber@0.3.3(git https://github.com/joshtombs/cucumber-js.git#78f79263e5855dd189e4bbe792cc6a34d7efcd19)`-slipout@0.1.12 npm WARN enoent ENOENT:没有这样的文件或目录,打开'C:\ Users \ Marketing1-Plugged \ package.json'npm WARN Marketing1-Plugged no description npm WARN Marketing1-Plugged No repository field . npm WARN Marketing1-Plugged No README data npm WARN Marketing1-Plugged No license field .

1 回答

  • 0

    您可以将package.json文件放在指定的路径中

    并尝试升级您的npm版本

    npm install npm -g --ca = null

相关问题