我最近安装了Oracle jet,但我还没有对它进行任何更改。我今天创建了我的第一个项目,当我尝试构建或服务它时,它显示错误。我试图在Visual Studio上运行它(我不会这很重要)
这是我得到的错误
PM> ojet serve ojet : [31mError: Your JET project does not have oraclejet-tooling installed.[0m
At line:1 char:
+ ojet serve
+ ~~~~~~~~~~
+ CategoryInfo : NotSpecified: ([31mError: You... installed.[0m:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
UPDATE :显然当我创建一个新模板时,它会从那里创建一个错误,生成应用程序结构但是在调用mom安装期间它无法解析某些特定的JSON
以下是错误:
ojet create ojetnavbar --template=navbar
Processing template: navbar
Your app structure is generated. Continuing with library install.
Performing npm install may take a bit.
Invoking npm install.
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm ERR! Unexpected end of JSON input while parsing near '...oIzTWjIvO8rspcLCK+1pI'
npm ERR! A complete log of this run can be found in:
npm ERR! *location of log*
Error: (during Invoking npm install.) 1
答案 0 :(得分:3)
$ npm install -g @oracle/ojet-cli
$ npm install -g @oracle/oraclejet-tooling
$ ojet restore
这将解决您的问题
答案 1 :(得分:1)
我已经解决了这个问题,因为JSON npm尝试解析的主要是缓存,并且由于发生了解析错误
我在我的电脑上使用了npm-cache clean
,所有电影都完全正常运行。
答案 2 :(得分:0)
我认为您需要在项目中添加oraclejet工具。试试这个:
cd appDir npm install @oracle/oraclejet-tooling --save
答案 3 :(得分:0)
oraclejet-tooling软件包已被弃用,您必须使用包含用于Oracle JET Web和混合移动应用程序开发的命令行界面的模块。
请参见https://www.npmjs.com/package/@oracle/ojet-cli
cd oracle-jet-simple-web
npm install @oracle/ojet-cli --save
答案 4 :(得分:0)