安装Keystone Generator时出错

时间:2018-07-09 12:04:32

标签: node.js npm windows-10 yeoman-generator keystonejs

我正在尝试使用KeystoneJS建立我的第一个项目。但是,当我尝试安装Keystone-Generator时,它会因错误而中断安装。

对于开发,我想在Windows 10(64位)笔记本电脑上运行KeystoneJS。

首先,我下载了Node.js和MongoDB。然后,我创建了文件夹C:\KeystoneJS,以下所有命令均在该文件夹中执行。我用npm init初始化了NPM。然后,我通过npm install -g yo -S安装了Yeoman-Generator。然后,我尝试安装Keystone-Generator:npm install -g generator-keystone -S

这导致了一些警告,最终导致了一个错误,我不知道该如何解决:

C:\KeystoneJS>npm install -g generator-keystone -S
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN deprecated simple-bufferstream@0.0.4: no longer maintained
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! path C:\Users\<My-Username>\AppData\Roaming\npm\node_modules\generator-keystone\node_modules\readline2\node_modules\strip-ansi\cli.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\<My-Username>\AppData\Roaming\npm\node_modules\generator-keystone\node_modules\readline2\node_modules\strip-ansi\cli.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\<My-Username>\AppData\Roaming\npm-cache\_logs\2018-07-09T11_55_10_518Z-debug.log

C:\KeystoneJS>

有人遇到类似问题或知道如何帮助我吗?

0 个答案:

没有答案