After I run
npm run build-android-bundle --uglify
the below message appears. Does anyone know about the below message?
C:\nativescript\mobile>npm run build-android-bundle --uglify
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build-android-bundle" "--uglify"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! Invalid version: "1"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\nativescript\mobile\npm-debug.log
=================================================================
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build-android-bundle',
1 verbose cli '--uglify' ]
2 info using npm#3.10.10
3 info using node#v6.11.0
4 verbose stack Error: Invalid version: "1"
4 verbose stack at Object.fixVersionField (C:\Program Files\nodejs\node_modules\npm\node_modules\normalize-package-data\lib\fixer.js:191:13)
4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\normalize-package-data\lib\normalize.js:32:38
4 verbose stack at Array.forEach (native)
4 verbose stack at normalize (C:\Program Files\nodejs\node_modules\npm\node_modules\normalize-package-data\lib\normalize.js:31:15)
4 verbose stack at final (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:349:5)
4 verbose stack at then (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:124:5)
4 verbose stack at ReadFileContext.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:295:20)
4 verbose stack at ReadFileContext.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16)
4 verbose stack at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:366:13)
5 verbose cwd C:\nativescript\mobile
6 error Windows_NT 6.1.7601
7 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build-android-bundle" "--uglify"
8 error node v6.11.0
9 error npm v3.10.10
10 error Invalid version: "1"
11 error If you need help, you may report this error at:
11 error <https://github.com/npm/npm/issues>
12 verbose exit [ 1, true ]
This seems to be an issue with the dependencies in the project package.json file. Could you verify whether all of them are up to date while following the below-attached sample:
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.nativescript.testNG"
},
"dependencies": {
"#angular/animations": "~4.4.1",
"#angular/common": "~4.4.1",
"#angular/compiler": "~4.4.1",
"#angular/core": "~4.4.1",
"#angular/forms": "~4.4.1",
"#angular/http": "~4.4.1",
"#angular/platform-browser": "~4.4.1",
"#angular/router": "~4.4.1",
"nativescript-angular": "~4.4.0",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.4.2",
"tns-core-modules": "~3.2.0",
"zone.js": "~0.8.2"
},
"devDependencies": {
"#angular/compiler-cli": "~4.4.1",
"#ngtools/webpack": "~1.6.0",
"copy-webpack-plugin": "~4.0.1",
"extract-text-webpack-plugin": "~3.0.0",
"nativescript-css-loader": "~0.26.0",
"nativescript-dev-typescript": "~0.5.0",
"nativescript-dev-webpack": "^0.8.0",
"nativescript-worker-loader": "~0.8.1",
"raw-loader": "~0.5.1",
"resolve-url-loader": "~2.1.0",
"typescript": "~2.4.2",
"webpack": "~3.2.0",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-sources": "~1.0.1"
},
"scripts": {
"ns-bundle": "ns-bundle",
"start-android-bundle": "npm run ns-bundle --android --run-app",
"start-ios-bundle": "npm run ns-bundle --ios --run-app",
"build-android-bundle": "npm run ns-bundle --android --build-app",
"build-ios-bundle": "npm run ns-bundle --ios --build-app",
"publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
"generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install"
}
}
After that delete node_modules and platforms folders. Run npm install and try to rebuild the project with npm run build-android-bundle --uglify
If the problem still persists, please provide some more info about the issue and share your package.json file. It would help if you could provide some sample project, which could be debugged locally.
Related
I was trying to install a project (https://github.com/junta/tradingview-alert-connector.git). When I yarn it, it failed with errors. Then, I try to rerun it and the result is the same.
I’m using node.js v18.12.1. and yarn 3.3.0
➤ YN0000: ┌ Resolution step
➤ YN0002: │ tradingview-alert-connector#workspace:. doesn't provide big.js (pb6e7e), requested by #perp/sdk-curie
➤ YN0060: │ tradingview-alert-connector#workspace:. provides ethers (p9fa99) with version 5.7.2, which doesn't satisfy what #perp/sdk-curie requests
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 730ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 792ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ ffi-napi#npm:4.0.3 must be built because it never has been before or the last one failed
➤ YN0009: │ ffi-napi#npm:4.0.3 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\User\AppData\Local\Temp\xfs-9d9591b9\build.log)
➤ YN0000: └ Completed in 13s 594ms
➤ YN0000: Failed with errors in 16s 363ms
Here is the build log for C:\Users\User\AppData\Local\Temp\xfs-9d9591b9\build.log
# This file contains the result of Yarn building a package (ffi-napi#npm:4.0.3)
# Script name: install
gyp info it worked if it ends with ok
gyp info using node-gyp#9.3.0
gyp info using node#18.12.1 | win32 | x64
gyp info find Python using Python version 3.10.9 found at "C:\Users\User\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe"
gyp info find VS using VS2022 (17.4.33205.214) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\User\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\node-gyp-npm-9.3.0-21c41a4dfd\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\ffi-napi-npm-4.0.3-fb70453a70\\node_modules\\ffi-napi\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\node-gyp-npm-9.3.0-21c41a4dfd\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\18.12.1\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\18.12.1',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\node-gyp-npm-9.3.0-21c41a4dfd\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\User\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\18.12.1\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\ffi-napi-npm-4.0.3-fb70453a70\\node_modules\\ffi-napi',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\ffi-napi-npm-4.0.3-fb70453a70\\node_modules\\ffi-napi\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
Traceback (most recent call last):
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\gyp_main.py", line 45, in <module>
sys.exit(gyp.script_main())
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 686, in script_main
return main(sys.argv[1:])
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 678, in main
return gyp_main(args)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 663, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2143, in GenerateOutput
_GenerateProject(project, options, msvs_version, generator_flags, spec)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1030, in _GenerateProject
return _GenerateMSBuildProject(project, options, version, generator_flags, spec)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 3735, in _GenerateMSBuildProject
_GenerateMSBuildFiltersFile(
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2222, in _GenerateMSBuildFiltersFile
easy_xml.WriteXmlIfChanged(content, filters_path, pretty=True, win32=True)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\easy_xml.py", line 137, in WriteXmlIfChanged
with open(path, "wb") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\ffi-napi-npm-4.0.3-fb70453a70\\node_modules\\ffi-napi\\build\\..\\..\\..\\node-addon-api-npm-3.2.1-a29528f81d\\node_modules\\node-addon-api\\nothing.vcxproj.filters'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\lib\configure.js:325:16)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.19044
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\node-gyp-npm-9.3.0-21c41a4dfd\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\ffi-napi-npm-4.0.3-fb70453a70\node_modules\ffi-napi
gyp ERR! node -v v18.12.1
gyp ERR! node-gyp -v v9.3.0
gyp ERR! not ok
I would really appreciate it if anyone could give me some advice.
I'm getting a weird error when I try to deploy google appengine. I've tried removing the yarn files, the package and package lock files, rerunning npm install, running npm cache verify, env V=1 npm install fsevents etc and I'm hopelessly stumped. Would love another eye to look at this, thanks!
There seems to be a few different errors, relating to 'make' and 'fsevents', so i guess that's a pattern here. There's also an issue with an instance class, I dont know what that means though:
:
appengine % ./gradlew :...:appengineDeploy -PgaeAppId=[...] -PgaeVersion=[...] --stacktrace
> Configure project :datastore-scrubber
Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'datastore-scrubber/build.gradle'
Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'datastore-scrubber/build.gradle'
> Configure project :[...]
tesType is:normal
tesType is:normal
> Configure project :[...]
tesType is:normal
tesType is:normal
> Configure project :...:appengine
--------------
Preparing [...]
Project: [...]
Module: default
Version: [...]
Instance: 0
BuildId: 327f45c7-pd
ClientType: adsApi
--------------
> Task :[...]:npmInstall
> fsevents#1.2.13 install /Users/.../src/main/webapp-src/community/node_modules/chokidar/node_modules/fsevents
> node install.js
2022-07-13 17:22:50.815 xcodebuild[69427:3693627] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-07-13 17:22:50.817 xcodebuild[69427:3693627] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
SOLINK_MODULE(target) Release/.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 21.5.0
gyp ERR! command "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/bin/node" "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/.../appengine/.../src/main/webapp-src/community/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v6.17.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
> fsevents#1.2.13 install /Users/.../appengine/.../src/main/webapp-src/community/node_modules/gulp-nodemon/node_modules/glob-watcher/node_modules/fsevents
> node install.js
2022-07-13 17:22:57.221 xcodebuild[69462:3693914] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-07-13 17:22:57.222 xcodebuild[69462:3693914] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
SOLINK_MODULE(target) Release/.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 21.5.0
gyp ERR! command "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/bin/node" "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/.../appengine/.../src/main/webapp-src/community/node_modules/gulp-nodemon/node_modules/glob-watcher/node_modules/fsevents
gyp ERR! node -v v6.17.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
> fsevents#1.2.13 install /Users/.../appengine/.../src/main/webapp-src/community/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
> node install.js
2022-07-13 17:23:02.257 xcodebuild[69495:3694117] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-07-13 17:23:02.259 xcodebuild[69495:3694117] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
SOLINK_MODULE(target) Release/.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 21.5.0
gyp ERR! command "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/bin/node" "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/.../appengine/.../src/main/webapp-src/community/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v6.17.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
> base62#1.2.7 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/base62
> node scripts/install-stats.js || exit 0
> es5-ext#0.10.61 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/es5-ext
> node -e "try{require('./_postinstall')}catch(e){}" || exit 0
> nodemon#2.0.19 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/gulp-nodemon/node_modules/nodemon
> node bin/postinstall || exit 0
> history#1.17.0 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/history
> node ./npm-scripts/postinstall.js
> nodemon#1.15.1 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/nodemon
> node -e "console.log('\u001b[32mLove nodemon? You can now support the project via the open collective:\u001b[22m\u001b[39m\n > \u001b[96m\u001b[1mhttps://opencollective.com/nodemon/donate\u001b[0m\n')" || exit 0
Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate
> react-router#1.0.3 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/react-router
> node ./npm-scripts/postinstall.js
> history#1.13.1 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/redux-simple-router/node_modules/history
> node ./npm-scripts/postinstall.js
(node:69370) Warning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit
<===npm WARN CGC#1.0.0 No repository field.
npm WARN CGC#1.0.0 No license field.
npm WARN The package gulp is included as both a dev and production dependency.
npm WARN The package react is included as both a dev and production dependency.
npm WARN The package react-google-maps is included as both a dev and production dependency.
added 1441 packages from 828 contributors in 109.328s
[!] 107 vulnerabilities found [1435 packages audited]
Severity: 10 Low | 37 Moderate | 45 High | 15 Critical
Run `npm audit` for more detail
> Task :...:community:installGulp
npm WARN deprecated source-map-resolve#0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated
/Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/bin/gulp -> /Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/lib/node_modules/gulp-cli/bin/gulp.js
+ gulp-cli#2.3.0
updated 1 package in 14.783s
> Task :...:community:gulp_compile
[17:23:37] Using gulpfile ~/appengine/.../src/main/webapp-src/community/gulpfile.js
[17:23:37] Starting 'clean'...
[17:23:37] Finished 'clean' after 139 ms
[17:23:37] Starting 'compile-dev'...
[17:23:39] Finished 'compile-dev' after 1.88 s
[17:23:39] Starting 'build'...
[17:23:39] Finished 'build' after 45 μs
[17:24:04] [webpack] Hash: b01eec9b9b215740e23f
Version: webpack 1.15.0
Time: 24703ms
Asset Size Chunks Chunk Names
b2fd09d2d6e7ce1b328ead20a178e92b.svg 1.16 kB [emitted]
fa4f68bc1ae76084810c59bdfd838ce5.svg 297 bytes [emitted]
873ecd9c5293d504c3525d348848dacc.svg 109 kB [emitted]
e18bbf611f2a2e43afc071aa2f4e1512.ttf 45.4 kB [emitted]
fa2772327f55d8198301fdb8bcfc8158.woff 23.4 kB [emitted]
448c34a56d699c29117adc64c43affeb.woff2 18 kB [emitted]
ff91b2ead3bdcb704102a3750daa8db6.svg 2.29 kB [emitted]
5be796adcb6355893130a01594579430.svg 1.38 kB [emitted]
a6dce5d152826a4eef514aa5a344bd2c.svg 1.58 kB [emitted]
31ec490d5b132c71180a22acac41ddd1.svg 842 bytes [emitted]
132b63502ff1aa2c6e2ab92a1571ec07.svg 2.29 kB [emitted]
b35f3f021292331b1f871289333e8d00.svg 815 bytes [emitted]
f4769f9bdb7466be65088239c12046d1.eot 20.1 kB [emitted]
fb2b314f1f11b897d298e53ca5556ef8.svg 1.38 kB [emitted]
cab33a29ba7c9ff19789abc3f6d11dfa.svg 1.58 kB [emitted]
3d185c654eba9403898313140e6ade9f.svg 842 bytes [emitted]
0e1f36d20f6a179798b236581ca3d745.svg 850 bytes [emitted]
1de25592aed1d35f983658132ea3719c.png 33.3 kB [emitted]
index.js 2.83 MB 0 [emitted] main
app.css 233 kB 0 [emitted] main
index.js.map 3.41 MB 0 [emitted] main
app.css.map 84 bytes 0 [emitted] main
favicon.ico NaN undefined [emitted]
index.html 1.07 kB [emitted]
> Task :...:appengineDeploy
WARNING: In file [/Users/.../appengine/.../build/staged-app/app.yaml]: ('module', 'Field module is deprecated; use service instead.')
Services to deploy:
descriptor: [/Users/.../appengine/.../build/staged-app/app.yaml]
source: [/Users/.../appengine/.../build/staged-app]
target project: [dev...]
target service: [...]
target version: [pd-...]
target url: [https://pd-...-dot-...-dot-dev....appspot.com]
(add --promote if you also want to make this service available from
[https://...-dot-dev....appspot.com])
Beginning deployment of service [...]...
#============================================================#
#= Uploading 0 files to Google Cloud Storage =#
#============================================================#
File upload done.
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Instance class (B4_1G) is only allowed with the manual or basic scaling value.
- '#type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: Instance class (B4_1G) is only allowed with the manual or basic scaling
value.
field: version.instance_class
> Task :...:appengineDeploy FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':...:appengineDeploy'.
> com.google.cloud.tools.appengine.AppEngineException: com.google.cloud.tools.appengine.operations.cloudsdk.process.ProcessHandlerException: com.google.cloud.tools.appengine.AppEngineException: Non zero exit: 1
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':...:appengineDeploy'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$3(ExecuteActionsTaskExecuter.java:186)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:184)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
...
Fixed! I had to fix the instance error that came up namely:
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Instance class (B4_1G) is only allowed with the manual or basic scaling value.
- '#type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: Instance class (B4_1G) is only allowed with the manual or basic scaling
value.
field: version.instance_class
> Task :...:appengineDeploy FAILED
I did this by adding
<basic-scaling>
<max-instances>10</max-instances>
</basic-scaling>
to one of the xml files
My compilation process does not work and as I am a beginner I do not know why. Any constructive help is highly appreciated ;).
I have spent like 24 hours to solve the problem without success...
I have reinstalled all packages, cleaned cache etc., but nothing has helped.
{
"name": "natours",
"version": "1.0.0",
"description": "Landing page for natours",
"main": "index.js",
"scripts": {
"watch:sass": "node-sass sass/main.scss css/style.css -w",
"devserver": "live-server",
"start": "npm-run-all --parallel devserver watch:sass",
"compile:sass": "node-sass sass/main.scss css/style.comp.css",
"concat:css": "concat -o css/style.concat.css css/icon-font.css css/style.comp.css",
"prefix:css": "postcss --use autoprefixer -b 'last ten versions' css/style.concat.css -o css/style.prefix.css",
"compress:css": "node-sass css/style.prefix.css css/style.css --output-style compressed",
"build:css": "npm-run-all compile:sass concat:css prefix:css compress:css"
},
"author": "Jonas",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^10.0.0",
"concat": "^1.0.3",
"libs": "^0.1.2",
"node-sass": "^4.14.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.0.5",
"postcss-cli": "^7.1.2"
},
"dependencies": {
"live-server": "^1.2.1"
}
}
When I run command npm run prefix:css I get such error:
npm run prefix:css
> natours#1.0.0 prefix:css /home/piotr/Documents/personal/ProgrammingBooks/HTML, CSS/advanced-css-course-master/Natours/starter
> postcss --use autoprefixer -b 'last ten versions' css/style.concat.css -o css/style.prefix.css
Error: PostCSS plugin autoprefixer requires PostCSS 8. Update PostCSS or downgrade this plugin.
at Processor.normalize (/home/piotr/Documents/personal/ProgrammingBooks/HTML, CSS/advanced-css-course-master/Natours/starter/node_modules/postcss-cli/node_modules/postcss/lib/processor.js:167:15)
at new Processor (/home/piotr/Documents/personal/ProgrammingBooks/HTML, CSS/advanced-css-course-master/Natours/starter/node_modules/postcss-cli/node_modules/postcss/lib/processor.js:56:25)
at postcss (/home/piotr/Documents/personal/ProgrammingBooks/HTML, CSS/advanced-css-course-master/Natours/starter/node_modules/postcss-cli/node_modules/postcss/lib/postcss.js:55:10)
at /home/piotr/Documents/personal/ProgrammingBooks/HTML, CSS/advanced-css-course-master/Natours/starter/node_modules/postcss-cli/index.js:216:14
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! natours#1.0.0 prefix:css: `postcss --use autoprefixer -b 'last ten versions' css/style.concat.css -o css/style.prefix.css`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the natours#1.0.0 prefix:css 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! /home/piotr/.npm/_logs/2020-09-18T21_58_54_802Z-debug.log
-------------
I also add COMPLETE LOG ERROR
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/home/piotr/.nvm/versions/node/v12.18.3/bin/node',
1 verbose cli '/home/piotr/.nvm/versions/node/v12.18.3/bin/npm',
1 verbose cli 'run',
1 verbose cli 'prefix:css'
1 verbose cli ]
2 info using npm#6.14.8
3 info using node#v12.18.3
4 verbose run-script [ 'prefix:css' ]
5 info lifecycle natours#1.0.0~prefix:css: natours#1.0.0
6 verbose lifecycle natours#1.0.0~prefix:css: unsafe-perm in lifecycle true
7 verbose lifecycle natours#1.0.0~prefix:css: PATH: /home/piotr/.nvm/versions/node/v12.18.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/piotr/Documents/personal/ProgrammingBooks/HTML, CSS/advanced-css-course-master/Natours/starter/node_modules/.bin:/home/piotr/.nvm/versions/node/v12.18.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
8 verbose lifecycle natours#1.0.0~prefix:css: CWD: /home/piotr/Documents/personal/ProgrammingBooks/HTML, CSS/advanced-css-course-master/Natours/starter
9 silly lifecycle natours#1.0.0~prefix:css: Args: [
9 silly lifecycle '-c',
9 silly lifecycle "postcss --use autoprefixer -b 'last ten versions' css/style.concat.css -o css/style.prefix.css"
9 silly lifecycle ]
10 silly lifecycle natours#1.0.0~prefix:css: Returned: code: 1 signal: null
11 info lifecycle natours#1.0.0~prefix:css: Failed to exec prefix:css script
12 verbose stack Error: natours#1.0.0 prefix:css: `postcss --use autoprefixer -b 'last ten versions' css/style.concat.css -o css/style.prefix.css`
12 verbose stack Exit status 1
12 verbose stack at EventEmitter.<anonymous> (/home/piotr/.nvm/versions/node/v12.18.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
12 verbose stack at EventEmitter.emit (events.js:315:20)
12 verbose stack at ChildProcess.<anonymous> (/home/piotr/.nvm/versions/node/v12.18.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
12 verbose stack at ChildProcess.emit (events.js:315:20)
12 verbose stack at maybeClose (internal/child_process.js:1021:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
13 verbose pkgid natours#1.0.0
14 verbose cwd /home/piotr/Documents/personal/ProgrammingBooks/HTML, CSS/advanced-css-course-master/Natours/starter
15 verbose Linux 5.4.0-47-generic
16 verbose argv "/home/piotr/.nvm/versions/node/v12.18.3/bin/node" "/home/piotr/.nvm/versions/node/v12.18.3/bin/npm" "run" "prefix:css"
17 verbose node v12.18.3
18 verbose npm v6.14.8
19 error code ELIFECYCLE
20 error errno 1
21 error natours#1.0.0 prefix:css: `postcss --use autoprefixer -b 'last ten versions' css/style.concat.css -o css/style.prefix.css`
21 error Exit status 1
22 error Failed at the natours#1.0.0 prefix:css script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
23 verbose exit [ 1, true ]
I ran into a similar issue - there seems to be some bugs with autoprefixer version 10.0.0.
Downgrade your autoprefixer vesion and your command will run as expected.
Change "autoprefixer": "^10.0.0", to "autoprefixer": "<10.0.0", in your package file. This will install the newest version of autoprefixer that is less than version 10.0.0 - reference.
I use Laravel and Vuejs
and encountered this error after a small change in the router js file.
This error occurs when compiling. What's the solution?
C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi>npm run watch
> # watch C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi
> npm run development -- --watch
> # development C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"
m ERR! code ELIFECYCLE
npm ERR! errno 3221225725
npm ERR! # development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"`
npm ERR! Exit status 3221225725
npm ERR!
npm ERR! Failed at the # development 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\PhpCoder\AppData\Roaming\npm-cache\_logs\2020-04-26T07_19_13_581Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 3221225725
npm ERR! # watch: `npm run development -- --watch`
npm ERR! Exit status 3221225725
npm ERR!
npm ERR! Failed at the # watch 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\PhpCoder\AppData\Roaming\npm-cache\_logs\2020-04-26T07_19_13_650Z-debug.log
log files :
> 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli
> 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli
> 'C:\\Users\\PhpCoder\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
> 1 verbose cli 'run', 1 verbose cli 'development', 1 verbose cli
> '--', 1 verbose cli '--watch' 1 verbose cli ] 2 info using
> npm#6.14.4 3 info using node#v12.16.1 4 verbose run-script [
> 'predevelopment', 'development', 'postdevelopment' ] 5 info lifecycle
> #~predevelopment: # 6 info lifecycle #~development: # 7 verbose
> lifecycle #~development: unsafe-perm in lifecycle true 8 verbose
> lifecycle #~development: PATH:
> C:\Users\PhpCoder\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi\node_modules\.bin;C:\Users\PhpCoder\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi\node_modules\.bin;C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi\node_modules\.bin;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
> Files (x86)\NVIDIA
> Corporation\PhysX\Common;C:\wamp64\bin\php\php7.4.0;C:\composer;C:\Program
> Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program
> Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program
> Files\Git\cmd;C:\Program Files\Microsoft VS
> Code\bin;C:\Users\PhpCoder\AppData\Local\Microsoft\WindowsApps;C:\Users\PhpCoder\AppData\Roaming\Composer\vendor\bin;C:\Users\PhpCoder\AppData\Roaming\npm;C:\Users\PhpCoder\AppData\Local\GitHubDesktop\bin
> 9 verbose lifecycle #~development: CWD:
> C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi 10
> silly lifecycle #~development: Args: [ 10 silly lifecycle '/d /s
> /c', 10 silly lifecycle 'cross-env NODE_ENV=development
> node_modules/webpack/bin/webpack.js --progress --hide-modules
> --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"' 10 silly lifecycle ] 11 silly lifecycle #~development: Returned: code:
> 3221225725 signal: null 12 info lifecycle #~development: Failed to
> exec development script 13 verbose stack Error: # development:
> `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js
> --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"` 13 verbose stack Exit status 3221225725 13 verbose stack at
> EventEmitter.<anonymous>
> (C:\Users\PhpCoder\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
> 13 verbose stack at EventEmitter.emit (events.js:311:20) 13
> verbose stack at ChildProcess.<anonymous>
> (C:\Users\PhpCoder\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
> 13 verbose stack at ChildProcess.emit (events.js:311:20) 13
> verbose stack at maybeClose (internal/child_process.js:1021:16) 13
> verbose stack at Process.ChildProcess._handle.onexit
> (internal/child_process.js:286:5) 14 verbose pkgid # 15 verbose cwd
> C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi 16
> verbose Windows_NT 10.0.18363 17 verbose argv "C:\\Program
> Files\\nodejs\\node.exe"
> "C:\\Users\\PhpCoder\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js"
> "run" "development" "--" "--watch" 18 verbose node v12.16.1 19 verbose
> npm v6.14.4 20 error code ELIFECYCLE 21 error errno 3221225725 22
> error # development: `cross-env NODE_ENV=development
> node_modules/webpack/bin/webpack.js --progress --hide-modules
> --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"` 22 error Exit status 3221225725 23 error Failed at the # development
> script. 23 error This is probably not a problem with npm. There is
> likely additional logging output above. 24 verbose exit [ 3221225725,
> true ]
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\PhpCoder\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'watch'
1 verbose cli ]
2 info using npm#6.14.4
3 info using node#v12.16.1
4 verbose run-script [ 'prewatch', 'watch', 'postwatch' ]
5 info lifecycle #~prewatch: #
6 info lifecycle #~watch: #
7 verbose lifecycle #~watch: unsafe-perm in lifecycle true
8 verbose lifecycle #~watch: PATH: C:\Users\PhpCoder\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi\node_modules\.bin;C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi\node_modules\.bin;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\wamp64\bin\php\php7.4.0;C:\composer;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Microsoft VS Code\bin;C:\Users\PhpCoder\AppData\Local\Microsoft\WindowsApps;C:\Users\PhpCoder\AppData\Roaming\Composer\vendor\bin;C:\Users\PhpCoder\AppData\Roaming\npm;C:\Users\PhpCoder\AppData\Local\GitHubDesktop\bin
9 verbose lifecycle #~watch: CWD: C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi
10 silly lifecycle #~watch: Args: [ '/d /s /c', 'npm run development -- --watch' ]
11 silly lifecycle #~watch: Returned: code: 3221225725 signal: null
12 info lifecycle #~watch: Failed to exec watch script
13 verbose stack Error: # watch: `npm run development -- --watch`
13 verbose stack Exit status 3221225725
13 verbose stack at EventEmitter.<anonymous> (C:\Users\PhpCoder\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:311:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\PhpCoder\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:311:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid #
15 verbose cwd C:\Users\PhpCoder\Documents\GitHub\demandSystem\LDMS-DrMirMohammadi
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\PhpCoder\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "watch"
18 verbose node v12.16.1
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 3221225725
22 error # watch: `npm run development -- --watch`
22 error Exit status 3221225725
23 error Failed at the # watch script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 3221225725, true ]
this is my package json :
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.19",
"bootstrap": "^4.0.0",
"cross-env": "^5.1",
"js-md5": "^0.7.3",
"laravel-mix": "^5.0.1",
"lodash": "^4.17.13",
"popper.js": "^1.12",
"resolve-url-loader": "^2.3.1",
"sass": "^1.20.1",
"sass-loader": "^8.0.0",
"vue": "^2.5.17",
"vue-template-compiler": "^2.6.10"
},
"dependencies": {
"vue-cryptojs": "^2.1.4",
"vue-router": "^3.1.5",
"vue2-editor": "^2.10.2",
"vuetify": "^2.2.14",
"vuex": "^3.1.3"
}
}
i used this commands but problem wasn't solved :
composer update
rm -rf node_modules
npm cache clean --force
npm install
npm run dev
this is my env:
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:sBN8f2Gdkl0sO8iUaCbjOhnqDAR786DAxRfjrIDlkrw=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
GHASEDAK_API_KEY="${GHASEDAK_API_KEY}"
GHASEDAK_LINE_NUMBER="${GHASEDAK_LINE_NUMBER}"
GHASEDAK_LINE_NUMBERS="${GHASEDAK_LINE_NUMBERS}"
this is my webpack.config.js
/**
* As our first step, we'll pull in the user's webpack.mix.js
* file. Based on what the user requests in that file,
* a generic config object will be constructed for us.
*/
let mix = require('../src/index');
let ComponentFactory = require('../src/components/ComponentFactory');
new ComponentFactory().installAll();
require(Mix.paths.mix());
/**
* Just in case the user needs to hook into this point
* in the build process, we'll make an announcement.
*/
Mix.dispatch('init', Mix);
/**
* Now that we know which build tasks are required by the
* user, we can dynamically create a configuration object
* for Webpack. And that's all there is to it. Simple!
*/
let WebpackConfig = require('../src/builder/WebpackConfig');
module.exports = new WebpackConfig().build();
Try to update sass package to the latest version.
I am trying to install pg on windows using npm, but receive the following error:
c:\Users\someone\Dropbox\somefolder>npm install -g pg
npm http GET https://registry.npmjs.org/pg
npm http 304 https://registry.npmjs.org/pg
npm http GET https://registry.npmjs.org/generic-pool/2.0.2
npm http 304 https://registry.npmjs.org/generic-pool/2.0.2
> pg#0.11.3 install C:\Users\someone\AppData\Roaming\npm\node_modules\pg
> node-gyp rebuild || (exit 0)
C:\Users\someone\AppData\Roaming\npm\node_modules\pg>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-
yp\bin\node-gyp.js" rebuild
'pg_config' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\gyp", line 18, in <module>
sys.exit(gyp.main(sys.argv[1:]))
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\__init__.py", line 511, in main
return gyp_main(args)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\__init__.py", line 494, in gyp_main
options.circular_check)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\__init__.py", line 133, in Load
depth, generator_input_info, check, circular_check)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 2378, in Load
depth, check)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 384, in LoadTargetBuildFile
build_file_data, PHASE_EARLY, variables, build_file_path)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1053, in ProcessVariablesAndConditionsInD
build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1068, in ProcessVariablesAndConditionsInL
ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1027, in ProcessVariablesAndConditionsInD
ProcessConditionsInDict(the_dict, phase, variables, build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 904, in ProcessConditionsInDict
variables, build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1046, in ProcessVariablesAndConditionsInD
build_file, key)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1046, in ProcessVariablesAndConditionsInD
build_file, key)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1053, in ProcessVariablesAndConditionsInD
build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1072, in ProcessVariablesAndConditionsInL
expanded = ExpandVariables(item, phase, variables, build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 714, in ExpandVariables
(contents, p.returncode))
Exception: Call to 'pg_config --libdir' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\co
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "
gyp ERR! cwd C:\Users\someone\AppData\Roaming\npm\node_modules\pg
gyp ERR! node -v v0.8.16
gyp ERR! node-gyp -v v0.7.3
gyp ERR! not ok
pg#0.11.3 C:\Users\someone\AppData\Roaming\npm\node_modules\pg
└── generic-pool#2.0.2
My versions are as follow:
c:\>node -v
v0.8.16
c:\>npm -v
1.1.69
When I check out the repository and try node-gyp rebuild I get the following error message:
C:\Users\someone\Downloads\node-postgres.git>node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp#0.8.3
gyp info using node#0.8.16 | win32 | ia32
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\lamassey\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\lamassey\\Downloads\\node-postgres.git\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\lamassey\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\lamassey\\.node-gyp\\0.8.16\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\lamassey\\.node-gyp\\0.8.16',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\lamassey\\Downloads\\node-postgres.git',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\lamassey\\Downloads\\node-postgres.git\\build',
gyp info spawn args '-Goutput_dir=.' ]
'pg_config' is not recognized as an internal or external command,
operable program or batch file.
gyp: Call to 'pg_config --libdir' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\lamassey\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:420:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Users\\lamassey\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\lamassey\Downloads\node-postgres.git
gyp ERR! node -v v0.8.16
gyp ERR! node-gyp -v v0.8.3
gyp ERR! not ok
Per the line
'pg_config' is not recognized as an internal or external command
I just need to install PostgreSQL before trying to
npm install pg
Have you checked out the installation instructions for node-gyp?
https://github.com/TooTallNate/node-gyp#installation
I recently had issues with node-gyp on Windows also while trying to install a separate module that depended on it. Make sure you have each of the items installed that it requires. Pay attention to this part specifically:
For 64-bit builds of node and native modules you will also need the Windows 7 64-bit SDK
If the install fails, try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first.
On OSx see Peter Lyons answer (accepted). The Xcode Version option worked for me.
https://stackoverflow.com/a/12825911/296765