首页 文章

polymer init bash:polymer:命令未找到

提问于
浏览
2

安装git . 安装最新版本的Bower . npm install -g bower npm install -g polymer-cli安装这些但是聚合物init bash:聚合物:命令未找到我尝试了很多次但没有解决此错误请解决此错误$ npm install -g polymer-cli npm WARN deprecated minimatch@2.0.10:请更新到minimatch 3.0.2或更高版本以避免RegExp DoS问题npm WARN弃用minimatch@0.2.14:请更新到minimatch 3.0.2或更高版本以避免RegExp DoS问题npm WARN弃用优雅-fs@1.2.3:graceful-fs v3.0.0及之前将在节点发行版> = v7.0上失败 . 请尽快更新到graceful-fs@^4.0.0 . 使用'npm ls graceful-fs'在树中找到它 . npm WARN弃用lodash@1.0.2:不再维护lodash @ <3.0.0 . 升级到lodash@^4.0.0 . C:\ Users \ Haresh \ AppData \ Roaming \ npm` - (空)

错误的ERR! Windows_NT 6.1.7601 npm ERR! argv“C:\ Program Files \ nodejs \ node.exe”“C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js”“install”“ - g”“polymer-cli”npm ERR!节点v6.9.1 npm ERR! npm v3.10.8 npm ERR!路径C:\ Users \ Haresh \ AppData \ Roaming \ npm \ node_modules \ polymer-cli npm ERR!代码EPERM npm ERR! errno -4048 npm ERR!系统调用重命名

错误的ERR!错误:EPERM:不允许操作,重命名为'C:\ Users \ Haresh \ AppData \ Roaming \ npm \ node_modules \ polymer-cli' - >'C:\ Users \ Haresh \ AppData \ Roaming \ npm \ no de_modules.polymer- cli.DELETE'npm ERR!在moveAway(C:\ Program Files \ nodejs \ node_modules \ npm \ lib \ install \ a ction \ finalize.js:38:5)npm ERR!在destStatted(C:\ Program Files \ nodejs \ node_modules \ npm \ lib \ instal l \ action \ finalize.js:27:7)npm ERR!在FSReqWrap.oncomplete(fs.js:123:15)npm ERR!错误的ERR!错误:EPERM:不允许操作,重命名为'C:\ Users \ Haresh \ AppData \ Roaming \ npm \ node_modules \ polymer-cli' - >'C:\ Users \ Haresh \ AppData \ Roaming \ npm \ no de_modules.polymer- cli.DELETE'npm ERR!在错误(本机)npm ERR!错误:EPERM:不允许操作,重命名为'C:\ Users \ Haresh \ AppData \ Roaming \ npm \ node_modules \ polymer-cli' - >'C:\ Users \ Haresh \ AppData \ Roaming \ npm \ n ode_modules.polymer- cli.DELETE'npm ERR!在moveAway(C:\ Program Files \ nodejs \ node_modules \ npm \ lib \ install \ a ction \ finalize.js:38:5)npm ERR!在destStatted(C:\ Program Files \ nodejs \ node_modules \ npm \ lib \ instal l \ action \ finalize.js:27:7)npm ERR!在FSReqWrap.oncomplete(fs.js:123:15)npm ERR!错误的ERR!错误:EPERM:不允许操作,重命名为'C:\ Users \ Haresh \ AppData \ Roaming \ npm \ node_modules \ polymer-cli' - >'C:\ Users \ Haresh \ AppData \ Roaming \ npm \ no de_modules.polymer- cli.DELETE'npm ERR!在错误(本机)npm ERR!错误的ERR!请尝试以root / Administrator身份再次运行此命令 .

错误的ERR!请在任何支持请求中包含以下文件:npm ERR! C:\ Users \ Haresh \ npm-debug.log npm ERR!代码1

1 回答

  • 0

    类型...

    which polymer (linux)
    

    在命令行找到聚合物的安装位置(如果有的话) .

    where polymer (windows)
    

    如果安装它的位置不在你的PATH中那么它就找不到它 . 您需要将可执行文件所在的文件夹添加到其工作路径中 .

相关问题