angular和lavarel的第一步-重新编译失败

时间:2018-11-22 09:49:21

标签: angularjs

我想在新脚本中进行更改。这基于laverel和angularjs。两者都没有经验。

因此,这似乎与我通常使用独立php和js文件的工作完全不同。我读到我必须重新编译代码。

所以我已经设置了本地XAMP服务器,并考虑以下问题,但是似乎每个步骤都失败了,我不知道为什么?

   Setting environment for using XAMPP for Windows.
fibu@FIBUSERVER c:\xampp
# cd htdocs

fibu@FIBUSERVER c:\xampp\htdocs
# cd cmseditor

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# cd sourcecode

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor\sourcecode
# npm install

> node-sass@4.9.3 install c:\xampp\htdocs\cmseditor\sourcecode\node_modules\node
-sass
> node scripts/install.js

Cached binary found at C:\Users\fibu\AppData\Roaming\npm-cache\node-sass\4.9.3\w
in32-x64-64_binding.node

> phantomjs-prebuilt@2.1.16 install c:\xampp\htdocs\cmseditor\sourcecode\node_mo
dules\phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Download already available at C:\Users\fibu\AppData\Local\Temp\phantomjs\phantom
js-2.1.1-windows.zip
Verified checksum of previously downloaded file
Extracting zip contents
Removing c:\xampp\htdocs\cmseditor\sourcecode\node_modules\phantomjs-prebuilt\li
b\phantom
Copying extracted folder C:\Users\fibu\AppData\Local\Temp\phantomjs\phantomjs-2.
1.1-windows.zip-extract-1542948580758\phantomjs-2.1.1-windows -> c:\xampp\htdocs
\cmseditor\sourcecode\node_modules\phantomjs-prebuilt\lib\phantom
Writing location.js file
Done. Phantomjs binary available at c:\xampp\htdocs\cmseditor\sourcecode\node_mo
dules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe

> circular-json@0.5.7 postinstall c:\xampp\htdocs\cmseditor\sourcecode\node_modu
les\circular-json
> echo ''; echo "\x1B[1mCircularJSON\x1B[0m is in \x1B[4mmaintenance only\x1B[0m
, \x1B[1mflatted\x1B[0m is its successor."; echo ''

''; echo "\x1B[1mCircularJSON\x1B[0m is in \x1B[4mmaintenance only\x1B[0m, \x1B[
1mflatted\x1B[0m is its successor."; echo ''

> node-sass@4.9.3 postinstall c:\xampp\htdocs\cmseditor\sourcecode\node_modules\
node-sass
> node scripts/build.js

Binary found at c:\xampp\htdocs\cmseditor\sourcecode\node_modules\node-sass\vend
or\win32-x64-64\binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fse
vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)

added 1390 packages from 1902 contributors and audited 30413 packages in 700.658
s
found 5 vulnerabilities (1 low, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor\sourcecode
#

我想的第二个想法

  Setting environment for using XAMPP for Windows.
fibu@FIBUSERVER c:\xampp
# cd htdocs

fibu@FIBUSERVER c:\xampp\htdocs
# cd cmseditor

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# cd sourcecode

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor\sourcecode
# cd..

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# npm run build
npm ERR! missing script: build

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\fibu\AppData\Roaming\npm-cache\_logs\2018-11-23T04_54_22_3
19Z-debug.log

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# cd sourcecode

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor\sourcecode
# npm run build

> cli@0.0.0 build c:\xampp\htdocs\cmseditor\sourcecode
> ng build --source-map=false --prod --source-map --common-chunk=false --deploy-
url=client/

Der Befehl "ng" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cli@0.0.0 build: `ng build --source-map=false --prod --source-map --com
mon-chunk=false --deploy-url=client/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cli@0.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\fibu\AppData\Roaming\npm-cache\_logs\2018-11-23T04_54_48_9
68Z-debug.log

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor\sourcecode
#

至少我会尝试

   Setting environment for using XAMPP for Windows.
fibu@FIBUSERVER c:\xampp
# cd htdocs

fibu@FIBUSERVER c:\xampp\htdocs
# cd cmseditor

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# cd sourcecode

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor\sourcecode
# cd..

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# npm run build
npm ERR! missing script: build

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\fibu\AppData\Roaming\npm-cache\_logs\2018-11-23T04_54_22_3
19Z-debug.log

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# cd sourcecode


Setting environment for using XAMPP for Windows.
fibu@FIBUSERVER c:\xampp
# cd htdocs

fibu@FIBUSERVER c:\xampp\htdocs
# cd cmseditor

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# gulp c:\xampp\htdocs\cmseditor\sourcecode
[06:02:38] No gulpfile found

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# gulp
[06:02:48] No gulpfile found

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# gulp c:\xampp\htdocs\cmseditor\sourcecode\
[06:03:26] No gulpfile found

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
# gulp c:\xampp\htdocs\cmseditor\
[06:04:43] No gulpfile found

fibu@FIBUSERVER c:\xampp\htdocs\cmseditor
#

感谢您的帮助和解释。

1 个答案:

答案 0 :(得分:0)

服务器设置有问题。

在卸载angularjs并重新安装后,所有命令均成功运行。

相关问题