skeleton-typescript-webpack fails when running npm start or npm run build on Windows 7 - npm

I'm running Windows 7 64bit with Node v6.5.0 and NPM 3.10.3. I ran npm install in the skeleton-typescript-webpack folder and all the packages installed fine. When I run any commands that call webpack though, I get the errors below.
When I run npm run build I get this error:
When I run npm start I get this error:
As you can see, the command that is run before the npm build error happens is concerning webpack, and same with the command that is run before the npm start error happens.
Anyone have an idea on how to fix this?

The skeleton skeleton-typescript-webpack uses TypeScript 2.0 for compilation.
This gives tries to compile adm-zip which is in the selenium-webdriver node module. And this gives an error on a break statement after a return statement.
The file .\nodes_modules\selenium-webdriver\node_modules\adm-zip\zipEntry.js gives the issue. You have to comment out two break; statements in the file on line 96 and line 115. After this you get a correct build.

Related

Error "URL parsing failed" in Nuxt.js2 when using the command "npm run build"

I am using Nuxt 2 when I use npm run dev, there are no errors or problems
but when I use npm run build, the following error occurs:
I deleted some packages, removed individual pages and components, and rebuilt google search but it had no effect.
you need to downgrade node.js to version 12

Execution failed for task ':react-native-location:compileDebugJavaWithJavac'

I upgraded all packages I am using on my app and then I decided to delete the node_module folder as well as package-lock.json. I then ran npm install and it installed everything but when I try run npx react-native run-android it fails with the following error:
> Execution failed for task ':react-native-location:compileDebugJavaWithJavac'.
I must state that when I installed all packages with npm install I had to run it with --force flag otherwise it would fail. Not sure if this has anything to do with the current error but just wanted to mention it.

Cannot find module ‘#expo/metro-config’ when trying to start the project with expo cli >= 4.8.0

I recently tried to launch my project on a new computer. I downloaded the source code from its repository and ran npm install to get all the needed packages.
However, when I run npm start or expo start:web, I get the error:
Cannot find module '#expo/metro-config'
I ran npm install #expo/metro-config and the install run without issue, but I still get the “Cannot find module '#expo/metro-config'” error.
The only post I saw regarding this error recommends editing the metro.config.js but I do not use one.
I am on SDK 42, and the project launches fine on my other computer. Any idea what is happening?
FYI, I use to perform this whole operation without any issue until now.
UPDATE:
I ran npm install -g #expo/metro-config and now I get the error Cannot find module 'resolve-from'
So it looks like maybe running npm install -g expo-cli doesn't actually install all the necessary packages? Could it be the issue?
I managed to make it "work" (get other missing packages errors down the line) by reverting to expo-cli 4.7.3. Anything from 4.8.0 and above will cause the error.
Something else is that on a fresh npm install, after running npm install -g expo-cli, if I try to create a project with expo init, I will get the error Error: Cannot find module 'kleur'. Running npm install kleur fix it, but maybe that's also a clue.

Error: "detox-cli" package is not meant to be installed locally, exiting

I am trying to follow this link to use detox for e2e testing for my react native app. I did it successfully once, but I removed e2e folder, was conducting some experiments, now I am not able to run detox init -r jest
every time I run this line it gives me this error:
Error: "detox-cli" package is not meant to be installed locally, exiting...
HINT: Remove the local installation and reinstall it globally:
npm uninstall detox-cli
npm install -g detox-cli
I have tried the solution in the hint, but it didn't resolve the issue, any suggestions?
If I uninstall and run the command, same error shows up.
when I install it, this is what I see (node version and detox-cli version)
/Users/.../.nvm/versions/node/v14.17.0/bin/detox -> /Users/.../.nvm/versions/node/v14.17.0/lib/node_modules/detox-cli/cli.js
+ detox-cli#18.13.0
updated 1 package in 1.358s
-----Update:
I just tried this and worked:
/Users/.../.nvm/versions/node/v14.17.0/bin/detox init -r jest

SyntaxError: Unexpected end of JSON input in npm run command

I'm working on Laravel project where using node version: v8.12.0 and npm version: 6.4.1. When I ran npm run watch command, I get error referenced to attached picture.
Ohh after a hard job finally got the solution: Just deleted : public/mix-manifest.json And then run : npm run watch It is working fine for me.