最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

“您的哟版本已过期”,同时建立我们的SharePoint框架的开发环境

IT培训 admin 7浏览 0评论

“您的哟版本已过期”,同时建立我们的SharePoint框架的开发环境

我的Windows 7 64位系统内建立我们的SharePoint架构的开发环境,在这个视频中提到:

我成功安装的Node.js + VS代码,现在我在安装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 :(
+ [email protected]
+ [email protected]
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 :(
+ [email protected]
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/64同样的问题,虽然我的的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;

也许问题是,哟医生不可能一直能够找到自己

“您的哟版本已过期”,同时建立我们的SharePoint框架的开发环境

我的Windows 7 64位系统内建立我们的SharePoint架构的开发环境,在这个视频中提到:

我成功安装的Node.js + VS代码,现在我在安装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 :(
+ [email protected]
+ [email protected]
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 :(
+ [email protected]
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/64同样的问题,虽然我的的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;

也许问题是,哟医生不可能一直能够找到自己

发布评论

评论列表 (0)

  1. 暂无评论