我需要运行以下命令:
bower update
grunt build
我收到以下错误:
C:\Program Files (x86)\Jenkins\jobs\Build\workspace>export PHANTOMJS_BIN=/usr/lib/node_modules/phantomjs
'export' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Jenkins\jobs\Build\workspace>export XDG_CONFIG_HOME="$WORKSPACE/.config"
'export' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Jenkins\jobs\Build\workspace>bower update
'bower' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Jenkins\jobs\Build\workspace>grunt build
'grunt' is not recognized as an internal or external command,
operable program or batch file.
请建议
问题解决了。这就是我现在正在做的。
set PATH=PATH=C:\Windows\system32;C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Java\jre7\bin;
C:\Program Files\nodejs\;
C:\Ruby200\bin;
C:\Program Files (x86)\Git\bin;
C:\Ruby200-x64\bin;
C:\Users\appcito\AppData\Roaming\npm
cd testnew
cd ui
call npm cache clear
call npm install
call bower cache clear
call bower install
call grunt build
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句