Error when run gulp start - npm

I'm searching and searching and I can´t find the error.
Now I hope someone help me.
npm -v
[18:54:13] Requiring external module babel-core/register
[18:54:13] CLI version 3.9.0
[18:54:13] Local version 3.9.0
gulp -v
5.6.0
$ gulp start
[18:47:59] Requiring external module babel-core/register
/node_modules/babel-core/lib/transformation/file/index.js:558
throw err;
^
SyntaxError: /config/index.js: Unexpected token (31:17)
29 | const bothConfig = require('./both');
30 |
> 31 | export default { ...bothConfig, ...envConfig };
| ^
32 |
at Parser.pp$5.raise (/node_modules/babylon/lib/index.js:4454:13)
at Parser.pp.unexpected (/node_modules/babylon/lib/index.js:1761:8)
at Parser.pp$3.parseIdentifier (/node_modules/babylon/lib/index.js:4332:10)
at Parser.pp$3.parsePropertyName (/node_modules/babylon/lib/index.js:4156:96)
at Parser.parsePropertyName (/node_modules/babylon/lib/index.js:6229:23)
at Parser.pp$3.parseObj (/node_modules/babylon/lib/index.js:4045:12)
at Parser.pp$3.parseExprAtom (/node_modules/babylon/lib/index.js:3719:19)
at Parser.parseExprAtom (/node_modules/babylon/lib/index.js:7238:22)
at Parser.pp$3.parseExprSubscripts (/node_modules/babylon/lib/index.js:3494:19)
at Parser.pp$3.parseMaybeUnary (/node_modules/babylon/lib/index.js:3474:19)

export default{bothConfig, envConfig};

Related

After make an npm update the console shows Error: Module not found: Error: Can't resolve 'angular2-moment'

I was trying to install jquery on my Angular project and after write some jquery dependency on package.json doc and type npm update, the console says Error: Module not found: Error: Can't resolve 'angular2-moment'.
Error occurs in the template of component RegisterComponent.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
× Failed to compile.
✔ Browser application bundle generation complete.
Initial Chunk Files | Names | Raw Size
main.js | main | 83.62 kB |
runtime.js | runtime | 6.51 kB |
4 unchanged chunks
Build at: 2023-01-10T02:39:00.432Z - Hash: 2a1b1b37176d6913 - Time: 536ms
./src/app/app.module.ts:7:0-47 - Error: Module not found: Error: Can't resolve 'angular2-moment' in 'C:\Users\xxxxxx\Desktop\Proyectos IT\registro_cintas\client\src\app'
Error: src/app/app.component.html:6:34 - error NG8002: Can't bind to 'routerLink' since it isn't a known property of 'a'.
6 <a class="link-home" [routerLink]="['/home']">
continue...
~~~~~~~~~~~~~~~~~~~~~~~~
I tryed installing ngx-moment, angular2-moment again or uninstalling this last one algo I erase the entire folder and made a git clone from the last working commit but nothing, I think the angular2-moment it's not compatible with my Angular version but I don't know what to do.

Parser Error of import Openzeppelin while compiling solidity code

Retrieving compiler information:
Compiler using remote version: 'latest', solidity version: 0.8.17+commit.8df45f5f.Emscripten.clang
ParserError: Expected string literal (path), "*" or alias list.
--> c:/Users/manis/Desktop/React_Native/contracts/NFTMarketplace.sol:6:8:
|
6 | import “#openzeppelin/contracts/utils/Counters.sol”;
| ^
Compilation failed with 1 errors
Please Tell me something about this error.
try in your console, in the main project folder:
yarn add #openzeppelin/contracts
also, check your node_modules folder.

npm - gulp-sass no longer has a default Sass compiler; please set one yourself

Keep getting this error when trying to build templates
[09:21:08] Requiring external module babel-register
[09:21:19] Using gulpfile ~/GIT/Newsletters/gulpfile.babel.js
[09:21:19] Starting 'build'...
[09:21:19] Starting 'clean'...
[09:21:19] Finished 'clean' after 5.98 ms
[09:21:19] Starting 'pages'...
[09:21:20] Finished 'pages' after 1.96 s
[09:21:20] Starting 'sass'...
Error in plugin "gulp-sass"
Message:
gulp-sass no longer has a default Sass compiler; please set one yourself.
Both the "sass" and "node-sass" packages are permitted.
For example, in your gulpfile:
const sass = require('gulp-sass')(require('sass'));
When I then add const sass = require('gulp-sass')(require('sass')); in my gulpfile.js
It gives this error
[09:41:01] Requiring external module babel-register
{ TypeError: /Users/lde4k1v/GIT/Newsletters/gulpfile.babel.js: Duplicate declaration "sass"
76 |
77 | // Compile Sass into CSS
> 78 | function sass() {
| ^
79 | return gulp.src('src/assets/scss/app.scss')
80 | .pipe($.if(!PRODUCTION, $.sourcemaps.init()))
81 | .pipe($.sass({
Here is my full gulpfile.babel.js
Can someone help me out :( already searched quite some time on it and can't find seem to fix it sadly

I have encontered an error while installing watchman on ubuntu 19, can someone give me a solution for this?

I have followed the watchman official guide to clone watchman and followed the given commands
$ cd watchman
$ ./autogen.sh
$ ./configure
$ make
after $ make command its caused a error like following
CXX scm/watchman-Mercurial.o
scm/Mercurial.cpp: In constructor ‘watchman::Mercurial::infoCache::infoCache(std::string)’:
scm/Mercurial.cpp:16:40: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct watchman::FileInformation’; use assignment or value-initialization instead [-Werror=class-memaccess]
16 | memset(&dirstate, 0, sizeof(dirstate));
| ^
In file included from scm/Mercurial.h:10,
from scm/Mercurial.cpp:3:
./FileInformation.h:18:8: note: ‘struct watchman::FileInformation’ declared here
18 | struct FileInformation {
| ^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:4446: scm/watchman-Mercurial.o] Error 1
anybody know what is going on here
Adding these flags to configure (before make) did it for me:
./configure --without-python --without-pcre --enable-lenient

Errors after installing '#babel/preset-env'

when I was trying to start my npm project I got the following error:
/home/projects/reactive-weather/reactive-weather/app/node_modules/expo/src/Location.js:
Cannot find module '#babel/preset-env' from '/home/projects/reactive-weather/reactive-weather/app'
Surely I need to install this module but after I did, I'm getting this error:
Error: /home/projects/reactive-weather/reactive-weather/app/node_modules/expo/src/Location.js: Unexpected token, expected ";" (9:5)
7 | const LocationEventEmitter = new NativeEventEmitter(NativeModules.ExponentLocation);
8 |
> 9 | type ProviderStatus = {
| ^
10 | locationServicesEnabled: boolean,
11 | gpsAvailable: ?boolean,
12 | networkAvailable: ?boolean,
10:43:44 AM: Failed building JavaScript bundle
Everything was perfectly fine, the last thing I've done before this happened was using git commands like: git stash also I had to perform npm audit fix but I don't think any libs were vulnerable.