整理VSCODE在FIORI开发中使用的问题,
1.不能测试运行
在VSCODE中新建一个ELEMENT的FIORI运用时,经常发现生成的APP在WEB目录下没有node_modules目录,

当测试运行时报错如下:
1 2 3 4 5 6 7 8 |
PS D:\SAP\FIORI\test_ana> npm run start > test_ana@0.0.1 start > fiori run --open "test/flpSandbox.html?sap-client=130&sap-ui-xx-viewCache=false#testanasaptestana-tile" 'fiori' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 PS D:\SAP\FIORI\test_ana> |
1.1.解决办法
运行下面的命令,完成完全,其中1.102为manifest.json文件中的”minUI5Version”: “1.102.2”,
1 2 3 |
npm install @sap/ux-specification@UI5-1.102 --save-dev npm install @sap/ux-ui5-tooling --save-dev npm install @sap-ux/ui5-middleware-fe-mockserver --save-dev |
2.NPM安装很慢
如果 出现NPM安装很慢没返回,可以执行,可以设置一个NPM的镜像源,可使用阿里云 NPM 镜像,TAOBAI,也可设置为空,使用默认,都试一下,
2.1.官方源并清空缓存
1 2 |
npm config set registry https://registry.npmjs.org npm cache clean --force |
其它源
1 2 3 |
npm config set registry https://registry.npmmirror.com npm config set registry https://mirrors.cloud.tencent.com/npm/ npm config set registry https://mirrors.tuna.tsinghua.edu.cn/npm/ |