Trying to generate a theia-extension using "yo generate-extension" but am facing an error when arriving to this instruction which is among the script
npm run prepare
where it will launch the electron-app and the browser-app. here's the error
$ lerna run prepare
lerna info version 2.4.0
hello-world-extension: > hello-world-extension#0.0.0 prepare
hello-world-extension: > yarn run clean && yarn run build
hello-world-extension: yarn run v1.22.19
hello-world-extension: warning package.json: No license field
hello-world-extension: $ rimraf lib
hello-world-extension: Done in 0.27s.
hello-world-extension: yarn run v1.22.19
hello-world-extension: warning package.json: No license field
hello-world-extension: $ tsc
hello-world-extension: Done in 4.82s.
browser-app: > browser-app#0.0.0 prepare
browser-app: > theia build --mode development
electron-app: > electron-app#0.0.0 prepare
electron-app: > theia build --mode development
browser-app: Failed to resolve module: msgpackr
browser-app: Failed to resolve module: socket.io
electron-app: RequestError: getaddrinfo ENOTFOUND github.com\n
Related
When I run npm run build I get this error:
> plugin-test#0.1.0 build-esm
> BABEL_OUTPUT=esm babel src --extensions ".ts,.tsx,.js,.jsx" --copy-files --out-dir esm
"BABEL_OUTPUT" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
(translated from Russian: "BABEL_OUTPUT" is not a recognised internal or external command)
I've installed babel-core, babel-cli and babel-node and still get this error. I see the command that gets executed in my package.json:
"build-esm": "BABEL_OUTPUT=esm babel src --extensions \".ts,.tsx,.js,.jsx\" --copy-files --out-dir esm",
Any Ideas how to solve this?
I have cloned the VegaEmbed repo where I am supposed to perform yarn which succeeds with the following output:
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#2.3.2: The platform "win32" is incompatible with this module.
info "fsevents#2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ beemo create-config
[1] CONFIG Creating config files (476ms)
Then, I am supposed to perform yarn build which fails with the following output:
yarn run v1.22.10
$ yarn clean && yarn build:style
$ del build build-es5 src/style.ts
Parameter format not correct - "style.ts".
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\Users\hmiri\Downloads\VegaEmbed> yarn
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
$ beemo create-config
[1] CONFIG Creating config files (416ms)
Searching for the keywords of the error message does not bring up any useful instructions on how to resolve this error.
When I search for style.ts I get a hit in my package.json as follows:
"scripts": {
"prebuild": "yarn clean && yarn build:style",
"build": "rollup -c",
"build:style": "./build-style.sh",
"clean": "del build build-es5 src/style.ts",
"prepublishOnly": "yarn clean && yarn build",
"preversion": "yarn lint && yarn test",
"serve": "browser-sync start --directory -s -f build *.html",
"start": "yarn build && concurrently --kill-others -n Server,Rollup 'yarn serve' 'rollup -c -w'",
"pretest": "yarn build:style",
"test": "beemo jest --stdio stream",
"test:inspect": "node --inspect-brk ./node_modules/.bin/jest --runInBand",
"prepare": "beemo create-config",
"prettierbase": "beemo prettier '*.{css,scss,html}'",
"eslintbase": "beemo eslint .",
"format": "yarn eslintbase --fix && yarn prettierbase --write",
"lint": "yarn eslintbase && yarn prettierbase --check"
}
What's wrong in the clean section? Can someone please help me understand what needs to change there?
The problem was that del is a windows command. We need to switch to del-cli. I fixed it in https://github.com/vega/vega-embed/commit/eaa96696e8f7c1a1f6950968a0f5494e6b73ce91.
My build will not finish because it fails on the NPM step of Ng Build
Here is the build process and error:
npm install -g #angular/cli
npm install
ng build (or ng build --prod) depending on your preference
Publish Artifacts
On step 3, I get the Error: Npm failed with return code: 1
Details around user-agent = "npm/6.5.0 node/v10.15.0 win32 x64"
My package.json file exists in the repository and I've tried having it look specifically in that file or in the directory.
It seems to fail on this line of cold in the build on step 3 "command]C:\windows\system32\cmd.exe /D /S /C "C:\npm\prefix\npm.cmd ng build""
Any help would be appreciated.
Im creating my own webpack starter template and in my recent tuning I've somehow stopped the build version from working but I have no idea what's wrong or how to debug it as there no obvious error messages or such.
In my package.json I have:
"scripts": {
"start": "webpack-serve --open --config webpack.dev.js",
"build": "webpack --config webpack.prod.js"
},
My start script runs well. The build Script is not working.
The build script does this in the terminal.
$ npm run build
> webpack-tailwind-starter-template#1.0.0 build /Users/richiekhoo/projects/webpack-tailwind-starter-template
> webpack --config webpack.prod.js
>
> and nothing more...
Debug Attemp #1
Does webpack from the CLI work?
I ran these:
$ webpack
$ webpack -v
$ webpack --version
I didn't get a 'command not found' instead the command executed provided no output and exited.
Is the issue that webpack is not running properly?
I wondered is it enough to have webpack in package.json or do I need it installed globally locally and via npm as a standalone package?
Lost as to how to work out what's wrong. Please help.
Here's the code including my webpack config files:
https://github.com/demingfactor/webpack-tailwind-starter-template
I'm running asdf and it seems there are some issues with how asdf interacts with npm.
I fixed my issue by running these commands (any of them individually could have been the fix).
$ asdf plugin-update --all
$ asdf update
$ npm i npm
I found the solutions here in the last few entries on the thread - https://github.com/asdf-vm/asdf/issues/162
I am trying to run my gulp lint task in my npm script like this, part of the package.json:
"lint":"cd somedirectory && npm run gulp-lint"
"gulp":"gulp",
"gulp-lint": "gulp --lint"
When I run npm run lint I get this error:
missing script : gulp-lint
How can I call the gulp task lint?