I know this question is already asked, But I think my problem is different than the problems described in the already asked questions.
here is the output of npm install command
here is the "/root/.npm/_logs/2018-07-12T14_14_35_726Z-debug.log" file
3304 silly saveTree | | | | +-- pify#2.3.0
3304 silly saveTree | | | | `-- strip-bom#3.0.0
3304 silly saveTree | | | `-- path-type#2.0.0
3304 silly saveTree | | +-- which-module#2.0.0
3304 silly saveTree | | `-- yargs-parser#7.0.0
3304 silly saveTree | `-- yargs#8.0.2
3304 silly saveTree +-- lodash#4.17.10
3304 silly saveTree +-- popper.js#1.14.3
3304 silly saveTree `-- vue#2.5.16
3305 warn ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
3306 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
3307 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
3308 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
3308 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
3308 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux
3308 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
3309 verbose stack Error: node-sass#4.9.2 postinstall: `node scripts/build.js`
3309 verbose stack Exit status 1
3309 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
3309 verbose stack at emitTwo (events.js:126:13)
3309 verbose stack at EventEmitter.emit (events.js:214:7)
3309 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
3309 verbose stack at emitTwo (events.js:126:13)
3309 verbose stack at ChildProcess.emit (events.js:214:7)
3309 verbose stack at maybeClose (internal/child_process.js:925:16)
3309 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
3310 verbose pkgid node-sass#4.9.2
3311 verbose cwd /home/amarjit/Documents/localhost/laraveys
3312 verbose Linux 4.15.0-23-generic
3313 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
3314 verbose node v8.11.3
3315 verbose npm v6.1.0
3316 error code ELIFECYCLE
3317 error errno 1
3318 error node-sass#4.9.2 postinstall: `node scripts/build.js`
3318 error Exit status 1
3319 error Failed at the node-sass#4.9.2 postinstall script.
3319 error This is probably not a problem with npm. There is likely additional logging output above.
3320 verbose exit [ 1, true ]
I found a solution, I think the issue was regarding permissions of all files in node_modules directory. So I just ran
sudo chmod -R a+rwx ./node_modules
For me it was installing nodejs-legacy. Type node -v and if that returns an error:
apt install nodejs-legacy
Should do the trick. Happy coding!
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.
Opening the command prompt in the folder I am working in. running 'foundation watch' and it gives me this error:
[10:19:50] 'build' errored after 13 s
[10:19:50] Error in plugin 'run-sequence'
Message:
An error occured in task 'clean'.
Error: foundation-zurb-template#1.0.0 start: gulp
Exit status 1
at EventEmitter. (C:\Users\Dev3\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\lib\utils\lifecycle.js:214:16)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
at ChildProcess. (C:\Users\Dev3\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\lib\utils\spawn.js:24:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)