Giter Site home page Giter Site logo

generator-coveo's People

Contributors

coveoben avatar jdevost avatar jfallaire avatar jmdrolet avatar lgcarrier avatar olamothe avatar

Watchers

 avatar  avatar  avatar  avatar

generator-coveo's Issues

Error when selecting local deployment option

2018-01-11 14_26_54-

PS D:\ps_aarp> yo coveo

 _-----_
|       |    ╭──────────────────────────╮
|--(o)--|    │  Welcome to the fabulous │

---------´ │ Coveo Project generator! │ ( _´U_ ) ╰──────────────────────────╯
/A\ /
| ~ |
'..'_
´ |° ´ Y

? Your project name? ps_aarp
? How do you want to connect to your Coveo Organization ? Connect to a sample organization owned by Coveo for demo purp
oses
? Select the type of Coveo deployment
You must be inside a folder named ps-aarp-search-ui
I'll automatically create this folder.
(node:1604) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.
create package.json
create README.MD
create scripts\setup.js
create sass\HelloWorld.scss
create sass\Index.scss
create tsconfig.json
create tslint.json
create src\ui\HelloWorld.ts
create src\Index.ts
create index.js
npm WARN deprecated [email protected]: TSD is deprecated in favor of Typings (https://github.com/typings/typings) - see DefinitelyTyped/tsd#269 for more information
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

[email protected] install D:\ps_aarp\ps-aarp-search-ui\node_modules\node-sass
node scripts/install.js

Cached binary found at C:\Users\dbouffard\AppData\Roaming\npm-cache\node-sass\4.7.2\win32-x64-59_binding.node

[email protected] postinstall D:\ps_aarp\ps-aarp-search-ui\node_modules\node-sass
node scripts/build.js

Binary found at D:\ps_aarp\ps-aarp-search-ui\node_modules\node-sass\vendor\win32-x64-59\binding.node
Testing binary
Binary is fine
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, scandir 'D:\ps_aarp\ps-aarp-search-ui\node_modules\fsevents\node_modules'

[email protected] postinstall D:\ps_aarp\ps-aarp-search-ui
npm run build && npm run dev

[email protected] build D:\ps_aarp\ps-aarp-search-ui
npm run setup && npm run sass && npm run prettier && npm run tslint && npm run ts

[email protected] setup D:\ps_aarp\ps-aarp-search-ui
node scripts/setup.js

[email protected] sass D:\ps_aarp\ps-aarp-search-ui
node-sass sass/Index.scss staticresources/ps_aarp_unzip/css/coveo.customization.ps_aarp.css

Rendering Complete, saving .css file...
Wrote CSS to D:\ps_aarp\ps-aarp-search-ui\staticresources\ps_aarp_unzip\css\coveo.customization.ps_aarp.css

[email protected] prettier D:\ps_aarp\ps-aarp-search-ui
prettier --single-quote --print-width 120 --write 'src/**/*.ts'

[error] No matching files. Patterns tried: 'src//*.ts' !/node_modules/** !./node_modules/**
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] prettier: prettier --single-quote --print-width 120 --write 'src/**/*.ts'
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] prettier script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dbouffard\AppData\Roaming\npm-cache_logs\2018-01-11T19_30_53_512Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: npm run setup && npm run sass && npm run prettier && npm run tslint && npm run ts
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dbouffard\AppData\Roaming\npm-cache_logs\2018-01-11T19_30_53_543Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] postinstall: npm run build && npm run dev
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dbouffard\AppData\Roaming\npm-cache_logs\2018-01-11T19_30_53_622Z-debug.log
ReferenceError: C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\generators\typescript\templates\webpack.config.js:11
9| plugins.push(new webpack.optimize.UglifyJsPlugin());
10| }

11| <% if(salesforce) { %>
12| const coveoComponentMock = `
13| <script src="../vendor/coveo/js/CoveoJsSearch.Lazy.js"></script>
14| <script src="../vendor/coveo/js/templates/templates.js"></script>

salesforce is not defined
at eval (eval at compile (C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\node_modules\ejs\lib\ejs.js:549:12), :11:8)
at returnedFn (C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\node_modules\ejs\lib\ejs.js:580:17)
at Object.exports.render (C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\node_modules\ejs\lib\ejs.js:384:37)
at process (C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\node_modules\mem-fs-editor\lib\actions\copy-tpl.js:12:18)
at applyProcessingFunc (C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\node_modules\mem-fs-editor\lib\actions\copy.js:13:16)
at EditionInterface.exports._copySingle (C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\node_modules\mem-fs-editor\lib\actions\copy.js:63:16)
at files.forEach.file (C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\node_modules\mem-fs-editor\lib\actions\copy.js:50:10)
at Array.forEach ()
at EditionInterface.exports.copy (C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\node_modules\mem-fs-editor\lib\actions\copy.js:49:9)
at EditionInterface.module.exports [as copyTpl] (C:\Users\dbouffard\AppData\Roaming\npm\node_modules\generator-coveo\node_modules\mem-fs-editor\lib\actions\copy-tpl.js:10:8)
PS D:\ps_aarp>

Windows failure of YO COVEO.

Hi team,

While this runs fine in my Mac environment (salesforce issue aside), I had a student in my dev course running this on Windows who got a crash with the errors below. I was able to reproduce this in my own Windows environment, even with different variables (Node 8.x vs 9.x, running as admin vs not).

Here are the logs in question as supplied by the student:

[email protected] sass C:\Users\server_admin\mydevproject
-search-ui
node-sass sass/Index.scss staticresources/mydevproject_unzip/css/coveo.customi
zation.mydevproject.css

Rendering Complete, saving .css file...
Wrote CSS to C:\Users\server_admin\mydevproject-search-ui\staticresources\mydevp
roject_unzip\css\coveo.customization.mydevproject.css

[email protected] prettier C:\Users\server_admin\mydevpro
ject-search-ui
prettier --single-quote --print-width 120 --write 'src/**/*.ts'

[error] No matching files. Patterns tried: 'src//*.ts' !/node_modules/** !./
node_modules/**
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] prettier: prettier --single-quo te --print-width 120 --write 'src/**/*.ts'
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] prettier 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\server_admin\AppData\Roaming\npm-cache_logs\2018-02-01T18
_38_50_552Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: npm run setup && npm run sass && npm run prettier && npm run tslint && npm run ts
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] 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\server_admin\AppData\Roaming\npm-cache_logs\2018-02-01T18
_38_50_645Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] postinstall: npm run build && n pm run dev
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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\server_admin\AppData\Roaming\npm-cache_logs\2018-02-01T18
_38_50_835Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.