- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在 Windows 7 x64 中设置 SharePoint 框架开发环境,如本视频中所述:
https://learn.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment
我成功安装了 Node.js + VS Code,现在我正处于安装 yo
包的阶段,使用以下命令:
npm install -g yo gulp
但是我收到错误“Your yo version is outdated”
,如下所示:
V Global configuration file is valid
V NODE_PATH matches the npm root
V Node.js version
V No .bowerrc file in home directory
V No .yo-rc.json file in home directory
× yo version
Your yo version is outdated.
Upgrade to the latest version by running:
npm install -g yo@latest
V npm version
Found potential issues on your machine :(
+ gulp@3.9.1
+ yo@2.0.5
added 787 packages in 229.024s
所以我运行了这个命令来升级yo
:
npm install -g yo@latest
但我遇到了同样的错误:
Running sanity checks on your system
V Global configuration file is valid
V NODE_PATH matches the npm root
V Node.js version
V No .bowerrc file in home directory
V No .yo-rc.json file in home directory
× yo version
Your yo version is outdated.
Upgrade to the latest version by running:
npm install -g yo@latest
V npm version
Found potential issues on your machine :(
+ yo@2.0.5
updated 1 package in 38.439s
我还尝试运行这些命令:
npm rm -g yo
npm install -g yo
但他们没有修复任何问题。
当我想打开yo
时,如下所示,又出现了一个错误:
PS C:\Users\*****> yo @microsoft/sharepoint
yo : The term 'yo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ yo @microsoft/sharepoint
+ ~~
+ CategoryInfo : ObjectNotFound: (yo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
谁能给点建议吗?
最佳答案
修复了 Windows 10/x64 上的相同问题,尽管我安装的 Nodejs 是非标准的“C:\nodejs\”。我将 NODE_PATH 修复为
c:\nodejs;c:\nodejs\node_modules\npm\node_modules"
和要包含的路径
c:\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;
c:\nodejs\node_modules\npm\node_modules\windows-build-tools\node_modules\.bin;
c:\nodejs\node_modules\npm\;
c:\nodejs;
也许问题在于你的医生无法找到自己
关于node.js - 设置 SharePoint 框架开发环境时出现错误 "Your yo version is outdated",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52175336/
我只是尝试进行 npm 安装,但最后收到关于医生、js 的错误。我需要担心吗? npm install -g 哟 . . npm http 304 https://registry.npmjs.org
很高兴我不仅可以从项目根目录还可以从子文件夹运行 NPM 脚本。但是,受限于它不能告诉我当前的工作路径 ($PWD)。 假设有一个这样的命令: "scripts": { ... "pwd":
我正在开发一个需要推送通知的应用程序。我想检测用户何时启用它,何时不启用它。 当我从 iPhone 设置中禁用推送通知时,著名的“Yo”应用程序会立即检测到它! 他们是怎么做到的? 最佳答案 大概是用
我已经安装了 Node 和 Yeoman,在走了一两条错误的路径(Homebrew install,sudo for Yeoman)之后,我在他们的站点(mac os x,mavericks)上正确安
运行 yo 会出现无效 token 错误。目前使用的 Node、NPM 版本如下。节点-vv4.5.0npm-v2.15.9 $ yo node_modules/yo/node_modules/yeo
像很多人一样,我也遇到了 Yeoman 的问题。 错误 -bash: yo: command not found在 OSx 中。 我尝试添加 export PATH=/usr/local/share/
我目前在我的元素中使用 rate-yo 插件作为审查系统。我可以成功添加这个小部件。 问题是,当我将鼠标悬停在评论星上时,我可以获得我选择的星数,但我希望在工具提示中而不是在星下方。 这是代码片段,文
我使用 YO OFFICE 创建了基于 React 的 Word JS 插件。 我注意到,当我打开两个不同的 Word 文档(word、online word、mix'n'match)并加载插件时,与
一开始,我在 /usr/local/lib/node_modules 上安装了 yo 和 generator-angular (通过执行错误的 sudo npm install -g ...)。 然后
我正在尝试使用 NPM 安装 Yeoman,但遇到以下错误: Jaspers-MacBook-Pro:Sites Jasper$ sudo npm install --global yo > full
我正在尝试设置一个 MEAN 项目,但似乎无法让生成器工作。我使用以下命令安装了 meanjs 生成器: npm -g install generator-meanjs 我运行了 yo meanjs
升级到 nodejs 0.10.0 和 npm 1.2.14 后,如果我尝试创建一个 webapp,yeoman 1.0 beta 会失败: $ yo webapp path.js:360
我正在做一个小玩具项目来测试 Yeoman 和 angular。 使用 yo angular 创建应用程序后我已经开始编写服务及其测试。一切都很完美,直到我试图忽略一个测试。 根据我的阅读,我应该能够
yo angular 在我的主目录中生成文件,我不知道为什么。 我做了以下事情: 节点的 ppa curl -sL https://deb.nodesource.com/setup | sudo ba
运行最新的 npm 和 node,我已经检查以确保它们的所有权权限是正确的,有什么想法吗? TypeError: Cannot read property 'bold' of undefined
我正在使用 Angular-fullstack yo 生成器 ( https://www.npmjs.org/package/generator-angular-fullstack )。这是一个简单的
我正在使用 yeoman 创建一个生成器,但遇到了一个小问题。 基本上我的生成器将能够创建这样的模块结构: 模块名称 类(class) 控制者 nameofmodule.php 当我执行生成器时,我位
如何使用 Rate Yo 带有数据属性的 jQuery 星级评分插件? 有没有办法通过 HTML 属性设置默认初始值? 是否可以使用 data-rateyo-score通过score值。 例如,如果我
我正在使用 Yeoman 创建一个新的 Web 应用程序,并且之前已经使用这种方法创建了一个并且运行良好。但是这次它似乎没有通过 Bootstrap 样式带来,我不确定为什么?下面的图片显示了当我运行
运行“yomeanjs”时,我无限期地挂起“这可能需要几分钟”。当我尝试运行 grunt 时,它失败了,与 npm start 相同。 我使用的是 Win 8.1,并安装了最新的 Node 和 Mon
我是一名优秀的程序员,十分优秀!