polymer init bash:polymer:command not found

时间:2016-11-04 10:12:10

标签: angular polymer polymer-1.0 polymer-starter-kit ui-design

安装git。 安装最新版本的Bower。 npm install -g bower npm install -g polymer-cli 安装这些 但  聚合物初始化 bash:polymer:命令未找到 我正在尝试这么多次,但没有解决此错误,请解决此错误 $ npm install -g polymer-cli npm WARN弃用minimatch@2.0.10:请更新到minimatch 3.0.2或更高版本以避免RegExp DoS问题 npm WARN弃用minimatch@0.2.14:请更新到minimatch 3.0.2或更高版本以避免RegExp DoS问题 npm WARN弃用了graceful-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 \应用程序数据\漫游\ NPM ` - (空)

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

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

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

1 个答案:

答案 0 :(得分:0)

输入...

which polymer (linux)

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

where polymer (windows)

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