polymer 1 "polymer init starter-kit" return this error: Template polymer-init-starter-kit:app not found - polymer-1.0

I'm following the instructions on the official polymer page:
https://www.polymer-project.org/1.0/start/toolbox/set-up
but when I execute this command:
polymer init starter-kit
I receive this error:
error: [init] Template polymer-init-starter-kit:app not found
error: [cli.main] cli runtime exception: Error: Template polymer-init-starter-kit:app not found
error: [cli.main] Error: Template polymer-init-starter-kit:app not found
at Object. (C:\Users\ruben\AppData\Roaming\npm\node_modules\polymer-cli\lib\init\init.js:223:19)
at Generator.next ()
at fulfilled (C:\Users\ruben\AppData\Roaming\npm\node_modules\polymer-cli\lib\init\init.js:17:58)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
my version polymer-cli: 1.7.2
my version node is: 8.11.2
my version npm is:5.6.0
my version bower is: 1.8.4
What am I doing wrong?
Thanks very much.

run this commands:
git clone https://github.com/Polymer/polymer-starter-kit.git
cd polymer-starter-kit
git checkout v2.2.0
bower install
regards

Related

Yarn start not working for react js after tried setting react native environment mac m1

ajayror#Ajays-MacBook-Air phgh % yarn start
yarn run v1.22.11
warning ../../package.json: No license field
$ react-scripts start
node:internal/modules/cjs/loader:488
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /Users/ajayror/Desktop/phgh/node_modules/postcss-safe-parser/node_modules/postcss/package.json
at new NodeError (node:internal/errors:371:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:416:9)
at packageExportsResolve (node:internal/modules/esm/resolve:669:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/ajayror/Desktop/phgh/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Node.js v17.0.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It seems like we all are facing the same issue, it's taken me so long to solve this problem. Simply follow this, uninstall the current version of node (v17.0.1) and install LTS(v16.13.1). I hope it will work no matter what.
Thanks for your douth.

Azure Devops Failing on npm install (Cannot find module 'Selenium-Webdriver'

I am trying to integrate Selenium IDE with Azure devops test plan
I have an "NPM install" task in my release pipeline and received an error of Error: Npm failed with return code: 1
This is the error from the log:
2020-10-12T22:37:37.9680875Z [command]C:\windows\system32\cmd.exe /D /S /C ""C:\Program Files\nodejs\npm.cmd" test"
2020-10-12T22:38:16.6366869Z
2020-10-12T22:38:16.6367643Z > ind#1.0.0 test D:\a\r1\a\Test_IND-CI \drop\Selenium IDE
2020-10-12T22:38:16.6368107Z > npx mocha --reporter xunit > result.xml
2020-10-12T22:38:16.6368363Z
2020-10-12T22:38:16.6368738Z npx: installed 136 in 32.857s
2020-10-12T22:38:16.6368973Z
2020-10-12T22:38:16.6369245Z Error: Cannot find module 'selenium-webdriver'
2020-10-12T22:38:16.6369465Z Require stack:
2020-10-12T22:38:16.6369714Z - D:\a\r1\a\Test_IND-CI \drop\Selenium IDE\test.js
2020-10-12T22:38:16.6370004Z - C:\npm\cache\_npx\5920\node_modules\mocha\lib\esm-utils.js
2020-10-12T22:38:16.6370300Z - C:\npm\cache\_npx\5920\node_modules\mocha\lib\mocha.js
2020-10-12T22:38:16.6370850Z - C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\one-and-dones.js
2020-10-12T22:38:16.6371232Z - C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\options.js
2020-10-12T22:38:16.6371553Z - C:\npm\cache\_npx\5920\node_modules\mocha\bin\mocha
2020-10-12T22:38:16.6371883Z at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
2020-10-12T22:38:16.6372236Z at Function.Module._load (internal/modules/cjs/loader.js:841:27)
2020-10-12T22:38:16.6372757Z at Module.require (internal/modules/cjs/loader.js:1025:19)
2020-10-12T22:38:16.6373259Z at require (internal/modules/cjs/helpers.js:72:18)
2020-10-12T22:38:16.6373925Z at Object.<anonymous> (D:\a\r1\a\Test_IND-CI \drop\Selenium IDE\test.js:2:37)
2020-10-12T22:38:16.6374606Z at Module._compile (internal/modules/cjs/loader.js:1137:30)
2020-10-12T22:38:16.6374983Z at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
2020-10-12T22:38:16.6375320Z at Module.load (internal/modules/cjs/loader.js:985:32)
2020-10-12T22:38:16.6375644Z at Function.Module._load (internal/modules/cjs/loader.js:878:14)
2020-10-12T22:38:16.6375999Z at Module.require (internal/modules/cjs/loader.js:1025:19)
2020-10-12T22:38:16.6382142Z at require (internal/modules/cjs/helpers.js:72:18)
2020-10-12T22:38:16.6382865Z at Object.exports.requireOrImport (C:\npm\cache\_npx\5920\node_modules\mocha\lib\esm-utils.js:20:12)
2020-10-12T22:38:16.6385244Z at Object.exports.loadFilesAsync (C:\npm\cache\_npx\5920\node_modules\mocha\lib\esm-utils.js:33:34)
2020-10-12T22:38:16.6385856Z at Mocha.loadFilesAsync (C:\npm\cache\_npx\5920\node_modules\mocha\lib\mocha.js:427:19)
2020-10-12T22:38:16.6387258Z at singleRun (C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\run-helpers.js:156:15)
2020-10-12T22:38:16.6388582Z at exports.runMocha (C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\run-helpers.js:225:10)
2020-10-12T22:38:16.6389265Z at Object.exports.handler (C:\npm\cache\_npx\5920\node_modules\mocha\lib\cli\run.js:366:11)
2020-10-12T22:38:16.6390655Z at C:\npm\cache\_npx\5920\node_modules\mocha\node_modules\yargs\lib\command.js:241:49
2020-10-12T22:38:16.6391922Z npm ERR! Test failed. See above for more details.
2020-10-12T22:38:16.6590665Z ##[warning]Couldn't find a debug log in the cache or working directory
2020-10-12T22:38:16.6612445Z ##[error]Error: Npm failed with return code: 1
This is the settings of my npm install task:
Azure Devops Failing on npm install (Cannot find module 'Selenium-Webdriver'
According to the error message:
Error: Cannot find module 'selenium-webdriver'
And the configuration screenshot of the build definition, we could to know that you execute the npm test directly without the packages. we need to use npm install command line to ensure that all the packages are installed:
npm install selenium-webdriver --save or npm install
You could check this thread for some more details.

yarn install error:Failed to download Chromium

The Yarn install failed to download Chromium. Error is as follows:
D:\workspace\www\ant-design-mobile-pro
λ yarn
yarn install v1.12.3
//...
Directory: D:\\workspace\\www\\ant-design-mobile-pro\\node_modules\\puppeteer
Output:
ERROR: Failed to download Chromium r599821! Set \"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD\" env variable to skip download.
{ Error: connect ETIMEDOUT 172.217.161.176:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '172.217.161.176',
success Saved lockfile.
Done in 343.80s.
Question:
Can I download Chromium manually? I can download it from https://npm.taobao.org/mirrors/chromium-browser-snapshots/Win_x64/,the question is: Where should I put it after dowloading it?
If you don't intend to run the automated browser tests which depend upon Chromium, you can skip the install per the error message:
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true && yarn
I've occasionally encountered this yarn install timeout recently as well, and no cache clear or other manipulation has seemed to resolve it.

error in bower install angular multiple select module

i want to install bower angular-multiple-select but getting this error every time,any help
$ bower install --savev angular-multiple-select
bower EACCES EACCES, open '/home/ali/.cache/bower/registry/bower.herokuapp.com/lookup/angular- multiple-select_730ad'
> Stack trace: Error: EACCES, open
> '/home/ali/.cache/bower/registry/bower.herokuapp.com/lookup/angular-multiple-select_730ad'
> Console trace: Error
> at StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:81:37)
> at Logger.<anonymous> (/usr/lib/node_modules/bower/lib/bin/bower.js:110:26)
> at Logger.emit (events.js:95:17)
at Logger.emit (/usr/lib/node_modules/bower/lib/node_modules/bower- logger/lib/Logger.js:29:39)
at /usr/lib/node_modules/bower/lib/commands/index.js:48:20
at _rejected (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:844:24)
at /usr/lib/node_modules/bower/lib/node_modules/q/q.js:870:30
at Promise.when (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31)
at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:788:41)
at /usr/lib/node_modules/bower/lib/node_modules/q/q.js:604:44 System info:
Bower version: 1.7.9
Node version: 0.10.37
OS: Linux
> 3.2.0-97-generic x64
Thanks,
Are you using Linux? You might need to use the sudo command. I.e.
sudo bower install --save angular-multiple-select

Angular installation problems

I am following along with TutsPlus Real time web apps with angularjs and firebase.
Referring to https://github.com/yeoman/generator-angular I ran
npm install -g grunt bower yo generator-karma generator-angular
After that I made a new project directory , cd into it and ran
yo angular which gave the following error:
events.js:85
throw er; // Unhandled 'error' event
^
Error: spawn grunt ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1046:32)
at child_process.js:1137:20
at process._tickCallback (node.js:355:11)
I have searched for ages now and can't find the specific reason for the error.
If someone could point me in the right direction please..
Thanks.
link to full output http://pastebin.com/GqJQV1Dg

Resources