NPM Not a single package import working after install, also not appearing in the list - npm

For every package I install, it installs perfectly and gets added to my dependencys. Yet when I try to use it or import it into my code, not a single part gets found from it. It also does not apprear into my list when I do npm list .
It does show in my explorer in the module folder. I have been trying to find a sollution for 3hrs now.
I have tried every stackoverflow solution I found but nothing works. Removed the folders, re-did the installs, the init, etc. Tried different packages. Nothing seems to be working.
Any help is appreciated.
Thanks
ERROR in ./node_modules/request/lib/har.js
Module not found: Error: Can't resolve 'fs' in '
D:\Eigen\PlexRequest\node_modules\request\lib'
# ./node_modules/request/lib/har.js 3:9-22
# ./node_modules/request/request.js
# ./node_modules/request/index.js
# ./node_modules/imdb/lib/movies.js
# ./node_modules/imdb/lib/imdb.js
# ./node_modules/imdb/index.js
# ./src/app.js
ERROR in ./node_modules/forever-agent/index.js
Module not found: Error: Can't resolve 'net' in
'D:\Eigen\PlexRequest\node_modules\forever-agent'
# ./node_modules/forever-agent/index.js 6:10-24
# ./node_modules/request/request.js
# ./node_modules/request/index.js
# ./node_modules/imdb/lib/movies.js
# ./node_modules/imdb/lib/imdb.js
# ./node_modules/imdb/index.js
# ./src/app.js
ERROR in ./node_modules/tough-cookie/lib/cookie.js
Module not found: Error: Can't resolve 'net' in 'D:\Eigen\PlexRequest\node_modules\tough-cookie\lib'
# ./node_modules/tough-cookie/lib/cookie.js 32:10-24
# ./node_modules/request/lib/cookies.js
# ./node_modules/request/index.js
# ./node_modules/imdb/lib/movies.js
# ./node_modules/imdb/lib/imdb.js
# ./node_modules/imdb/index.js
# ./src/app.js
ERROR in ./node_modules/tunnel-agent/index.js
Module not found: Error: Can't resolve 'net' in 'D:\Eigen\PlexRequest\node_modules\tunnel-agent'
# ./node_modules/tunnel-agent/index.js 3:10-24
# ./node_modules/request/lib/tunnel.js
# ./node_modules/request/request.js
# ./node_modules/request/index.js
# ./node_modules/imdb/lib/movies.js
# ./node_modules/imdb/lib/imdb.js
# ./node_modules/imdb/index.js
# ./src/app.js
ERROR in ./node_modules/forever-agent/index.js
Module not found: Error: Can't resolve 'tls' in 'D:\Eigen\PlexRequest\node_modules\forever-agent'
# ./node_modules/forever-agent/index.js 7:10-24
# ./node_modules/request/request.js
# ./node_modules/request/index.js
# ./node_modules/imdb/lib/movies.js
# ./node_modules/imdb/lib/imdb.js
# ./node_modules/imdb/index.js
# ./src/app.js
ERROR in ./node_modules/tunnel-agent/index.js
Module not found: Error: Can't resolve 'tls' in 'D:\Eigen\PlexRequest\node_modules\tunnel-agent'
# ./node_modules/tunnel-agent/index.js 4:10-24
# ./node_modules/request/lib/tunnel.js
# ./node_modules/request/request.js
# ./node_modules/request/index.js
# ./node_modules/imdb/lib/movies.js
# ./node_modules/imdb/lib/imdb.js
# ./node_modules/imdb/index.js
# ./src/app.js

Related

How to link libraries in cmakelists.txt

I am mainly using ROS which is cmake based, where I want to link a library that I compiled previously and copied the .so and .a file to /usr/lib and .h to /usr/include.
When I compile it with gcc, there is no problem with: gcc -o test test.c -lpynq -lcma -lpthread. How can I link those libraries in the cmakelist.txt?
Thank you for the help.
EDIT: Following JohnFilleau and the answer from ChrisZZ, this is my CMakeLists.txt:
cmake_minimum_required(VERSION 3.0.2)
project(proof_of_concept_string_ips)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()
################################################
## Declare ROS messages, services and actions ##
################################################
## To declare and build messages, services or actions from within this
## package, follow these steps:
## * Let MSG_DEP_SET be the set of packages whose message types you use in
## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
## * In the file package.xml:
## * add a build_depend tag for "message_generation"
## * add a build_depend and a exec_depend tag for each package in MSG_DEP_SET
## * If MSG_DEP_SET isn't empty the following dependency has been pulled in
## but can be declared for certainty nonetheless:
## * add a exec_depend tag for "message_runtime"
## * In this file (CMakeLists.txt):
## * add "message_generation" and every package in MSG_DEP_SET to
## find_package(catkin REQUIRED COMPONENTS ...)
## * add "message_runtime" and every package in MSG_DEP_SET to
## catkin_package(CATKIN_DEPENDS ...)
## * uncomment the add_*_files sections below as needed
## and list every .msg/.srv/.action file to be processed
## * uncomment the generate_messages entry below
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
## Generate messages in the 'msg' folder
# add_message_files(
# FILES
# Message1.msg
# Message2.msg
# )
## Generate services in the 'srv' folder
# add_service_files(
# FILES
# Service1.srv
# Service2.srv
# )
## Generate actions in the 'action' folder
# add_action_files(
# FILES
# Action1.action
# Action2.action
# )
## Generate added messages and services with any dependencies listed here
# generate_messages(
# DEPENDENCIES
# std_msgs
# )
################################################
## Declare ROS dynamic reconfigure parameters ##
################################################
## To declare and build dynamic reconfigure parameters within this
## package, follow these steps:
## * In the file package.xml:
## * add a build_depend and a exec_depend tag for "dynamic_reconfigure"
## * In this file (CMakeLists.txt):
## * add "dynamic_reconfigure" to
## find_package(catkin REQUIRED COMPONENTS ...)
## * uncomment the "generate_dynamic_reconfigure_options" section below
## and list every .cfg file to be processed
## Generate dynamic reconfigure parameters in the 'cfg' folder
# generate_dynamic_reconfigure_options(
# cfg/DynReconf1.cfg
# cfg/DynReconf2.cfg
# )
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if your package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES proof_of_concept_string_ips
# CATKIN_DEPENDS roscpp std_msgs
# DEPENDS system_lib
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
# include
${catkin_INCLUDE_DIRS}
)
## Declare a C++ library
# add_library(${PROJECT_NAME}
# src/${PROJECT_NAME}/proof_of_concept_string_ips.cpp
# )
## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
## either from message generation or dynamic reconfigure
# add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Declare a C++ executable
## With catkin_make all packages are built within a single CMake context
## The recommended prefix ensures that target names across packages don't collide
# add_executable(${PROJECT_NAME}_node src/proof_of_concept_string_ips_node.cpp)
## Rename C++ executable without prefix
## The above recommended prefix causes long target names, the following renames the
## target back to the shorter version for ease of user use
## e.g. "rosrun someones_pkg node" instead of "rosrun someones_pkg someones_pkg_node"
# set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME node PREFIX "")
## Add cmake target dependencies of the executable
## same as for the library above
# add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Specify libraries to link a library or executable target against
# target_link_libraries(${PROJECT_NAME}_node
# ${catkin_LIBRARIES}
# )
#############
## Install ##
#############
# all install targets should use catkin DESTINATION variables
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
# catkin_install_python(PROGRAMS
# scripts/my_python_script
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
## Mark executables for installation
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_executables.html
# install(TARGETS ${PROJECT_NAME}_node
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
## Mark libraries for installation
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_libraries.html
# install(TARGETS ${PROJECT_NAME}
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
# )
## Mark cpp header files for installation
# install(DIRECTORY include/${PROJECT_NAME}/
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
# FILES_MATCHING PATTERN "*.h"
# PATTERN ".svn" EXCLUDE
# )
## Mark other files for installation (e.g. launch and bag files, etc.)
# install(FILES
# # myfile1
# # myfile2
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
# )
#############
## Testing ##
#############
## Add gtest based cpp test target and link libraries
# catkin_add_gtest(${PROJECT_NAME}-test test/test_proof_of_concept_string_ips.cpp)
# if(TARGET ${PROJECT_NAME}-test)
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
# endif()
## Add folders to be run by python nosetests
# catkin_add_nosetests(test)
add_executable(pc_pub_string src/pc_pub_string.cpp)
target_link_libraries(pc_pub_string ${catkin_LIBRARIES})
#add_dependencies(pc_pub_string0 proof_of_concept_string_ips_generate_messages_cpp)
add_executable(arm_to_fpga src/arm_to_fpga.cpp)
target_link_libraries(arm_to_fpga ${catkin_LIBRARIES})
# target_link_libraries(arm_to_fpga ${catkin_LIBRARIES}) /usr/lib/libpynq.so)
#add_dependencies(arm_to_fpga proof_of_concept_generate_messages_cpp)
# add_executable(pynq_test_api src/pynq_test_api.cpp)
# target_link_libraries(pynq_test_api ${catkin_LIBRARIES})
set(pynq_lib "/usr/lib/libpynq.so")
set(cma_lib "/usr/lib/libcma.so")
add_executable(pynq_test_api src/pynq_test_api.cpp)
target_link_libraries(pynq_test_api PUBLIC
${catkin_LIBRARIES}
${pynq_lib}
${cma_lib}
pthread
)
target_include_directories(pynq_test_api PUBLIC
"/usr/include"
)
And the error:
CMakeFiles/pynq_test_api.dir/src/pynq_test_api.cpp.o: In function `main':
pynq_test_api.cpp:(.text+0xba): undefined reference to `PYNQ_allocatedSharedMemory(shared_memory_state_struct*, unsigned int, int)'
pynq_test_api.cpp:(.text+0xc8): undefined reference to `PYNQ_allocatedSharedMemory(shared_memory_state_struct*, unsigned int, int)'
collect2: error: ld returned 1 exit status
proof_of_concept_string_ips/CMakeFiles/pynq_test_api.dir/build.make:114: recipe for target '/home/xilinx/fpga_ros_scheduler/catkin_ws/devel/lib/proof_of_concept_string_ips/pynq_test_api' failed
make[2]: *** [/home/xilinx/fpga_ros_scheduler/catkin_ws/devel/lib/proof_of_concept_string_ips/pynq_test_api] Error 1
CMakeFiles/Makefile2:449: recipe for target 'proof_of_concept_string_ips/CMakeFiles/pynq_test_api.dir/all' failed
make[1]: *** [proof_of_concept_string_ips/CMakeFiles/pynq_test_api.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
The quick-but-not-elegant solution:
cmake_minimum_required(VERSION 3.20) # I like newer version
project(my_project)
set(pynq_lib "/usr/lib/libpynq.a") # the full path. if postfix is `.so`, change it
set(cma_lib "/usr/lib/libcma.a") # the full path. change if needed.
add_executable(test_app test.c)
target_link_libraries(test_app PUBLIC
${pynq_lib}
${cma_lib}
pthread
)
target_include_directories(test_app PUBLIC
"/usr/include"
)
The elegant way: as JohnFilleau suggested, suppose we generate pynq and cma libraries via CMake, then we treat them as "packages", and we "find package and link package", with commands like find_package() for external installed packages, or just use target_link_libraries() if build from same CMake based project.

Node Sass Undefined variable

I'm trying to setup an existing vuejs project on AWS
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
background: $info;
^
Undefined variable: "$info".
in /var/www/html/tradeline-creditpartner/src/assets/scss/core/scafholding.scss (line 226, c olumn 17)
# ./src/assets/scss/app.scss 4:14-229 14:3-18:5 15:22-237
# ./src/main.js
# multi (webpack)-dev-server/client?http://IP:8081/sockjs-node (webpack)/hot/dev-serv er.js ./src/main.js
However when trying to serve the project
npm run serve It keeps showing the above error
Is there something wrong with vuejs installation?
that's the only error I keep encountering.

Aurelia UX showcase app fails to load

I'm having trouble getting the Aurelia UX Showcase app to run on my local PC. It doesn't currently seem to work on the hosted demo site either, but I'm not sure if that's related. How can I get this running successfully? Is this a bug in the app, or something I'm doing wrong?
I followed the instructions to build the aurelia-ux demo app (located at https://github.com/aurelia/app-ux-showcase), and the app appeared to build succcessfully. However, upon running it, several errors are produced in the server output.
I can browse to the app (at http://localhost:8080) and the browser seems to connect to the server. However, there is no response.
Below is the server output, which is visible in the console after running the au run --env dev command:
C:\src\aurelia-ux-showcase>au run --env dev
Starting 'configureEnvironment'...
Finished 'configureEnvironment'
Starting 'runWebpack'...
(node:14072) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
Project is running at http://localhost:8080
webpack output is served from /
Content not from webpack is served from C:\src\aurelia-ux-showcase\dist
404s will fallback to /index.html
Finished 'runWebpack'
Hash: 8541226efa5bac91e63a
Version: webpack 4.8.3
Time: 5594ms
Built at: 2018-05-22 13:15:17
Asset Size Chunks Chunk Names
2cdebc25fc6d3d42442e69826e81a2c9.png 10.5 KiB [emitted]
main.js 701 KiB main [emitted] [big] main
vendors.js 3.88 MiB vendors [emitted] [big] vendors
index.html 743 bytes [emitted]
Entrypoint main [big] = vendors.js main.js
[./node_modules/aurelia-bootstrapper/dist/native-modules/aurelia-bootstrapper.js] 5.17 KiB {vendors} [built]
[./node_modules/aurelia-loader-webpack/dist/native-modules/aurelia-loader-webpack.js] 14.4 KiB {vendors} [built]
[./node_modules/aurelia-loader/dist/native-modules/aurelia-loader.js] 4.19 KiB {vendors} [built]
[./node_modules/aurelia-logging/dist/native-modules/aurelia-logging.js] 3.4 KiB {vendors} [built]
[./node_modules/aurelia-pal/dist/native-modules/aurelia-pal.js] 2.18 KiB {vendors} [built]
[./node_modules/aurelia-polyfills/dist/native-modules/aurelia-polyfills.js] 24.4 KiB {vendors} [built]
[./node_modules/aurelia-templating/dist/native-modules/aurelia-templating.js] 145 KiB {vendors} [built]
[./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js] 585 bytes {vendors} [built]
[./node_modules/aurelia-webpack-plugin/runtime/pal-loader-entry.js] 1.56 KiB {vendors} [built]
[./node_modules/bluebird/js/browser/bluebird.js] 175 KiB {vendors} [built]
[0] multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper 52 bytes {main} [built]
[./node_modules/process/browser.js] 5.29 KiB {vendors} [built]
[aurelia-framework] ./node_modules/aurelia-framework/dist/native-modules/aurelia-framework.js 13.8 KiB {vendors} [built]
[aurelia-pal-browser] ./node_modules/aurelia-pal-browser/dist/native-modules/aurelia-pal-browser.js 14.2 KiB {vendors} [built]
[main] ./src/main.ts 966 bytes {main} [built]
+ 172 hidden modules
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/button' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 2:0-51 2:0-51 15:0-75 30:4-28
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/checkbox' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 3:0-67 3:0-67 3:0-67 17:0-79 32:4-30
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/chip-input' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 4:0-83 4:0-83 4:0-83 4:0-83 18:0-77 33:4-26
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/datepicker' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 6:0-59 6:0-59 19:0-83 34:4-32
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/form' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 7:0-47 7:0-47 21:0-71 36:4-26
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/input' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 8:0-58 8:0-58 8:0-58 22:0-73 37:4-27
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/input-info' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 9:0-58 9:0-58 23:0-82 38:4-31
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/list' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 10:0-47 10:0-47 24:0-71 39:4-26
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/radio' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 11:0-58 11:0-58 11:0-58 25:0-73 40:4-27
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/switch' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 13:0-61 13:0-61 13:0-61 27:0-75 42:4-28
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
ERROR in ./node_modules/#aurelia-ux/components/dist/native-modules/index.js
Module not found: Error: Can't resolve '#aurelia-ux/textarea' in 'C:\src\aurelia-ux-showcase\node_modules\#aurelia-ux\components\dist\native-modules'
# ./node_modules/#aurelia-ux/components/dist/native-modules/index.js 12:0-67 12:0-67 12:0-67 26:0-79 41:4-30
# ./src/main.ts
# ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
# multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 1.36 MiB 0
Entrypoint undefined = index.html
[./node_modules/html-webpack-plugin/lib/loader.js!./index.ejs] 1.1 KiB {0} [built]
[./node_modules/lodash/lodash.js] 527 KiB {0} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 509 bytes {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 519 bytes {0} [built]
i 「wdm」: wait until bundle finished: /vendors.js
i 「wdm」: wait until bundle finished: /main.js
i 「wdm」: wait until bundle finished: /
× 「wdm」: ConcurrentCompilationError: You ran Webpack twice. Each instance only supports a single concurrent compilation at a time.
at Compiler.run (C:\src\aurelia-ux-showcase\node_modules\webpack\lib\Compiler.js:151:37)
at rebuild (C:\src\aurelia-ux-showcase\node_modules\webpack-dev-server\node_modules\webpack-dev-middleware\lib\context.js:81:24)
at done (C:\src\aurelia-ux-showcase\node_modules\webpack-dev-server\node_modules\webpack-dev-middleware\lib\context.js:59:7)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\src\aurelia-ux-showcase\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:18:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (C:\src\aurelia-ux-showcase\node_modules\webpack\node_modules\tapable\lib\Hook.js:35:21)
at emitRecords.err (C:\src\aurelia-ux-showcase\node_modules\webpack\lib\Compiler.js:203:22)
at Compiler.emitRecords (C:\src\aurelia-ux-showcase\node_modules\webpack\lib\Compiler.js:315:39)
at emitAssets.err (C:\src\aurelia-ux-showcase\node_modules\webpack\lib\Compiler.js:197:10)
at hooks.afterEmit.callAsync.err (C:\src\aurelia-ux-showcase\node_modules\webpack\lib\Compiler.js:301:14)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\src\aurelia-ux-showcase\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:15:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (C:\src\aurelia-ux-showcase\node_modules\webpack\node_modules\tapable\lib\Hook.js:35:21)
at asyncLib.forEach.err (C:\src\aurelia-ux-showcase\node_modules\webpack\lib\Compiler.js:298:27)
at done (C:\src\aurelia-ux-showcase\node_modules\neo-async\async.js:2854:11)
at C:\src\aurelia-ux-showcase\node_modules\neo-async\async.js:2805:7
at MemoryFileSystem.writeFile (C:\src\aurelia-ux-showcase\node_modules\memory-fs\lib\MemoryFileSystem.js:328:9)
at writeOut (C:\src\aurelia-ux-showcase\node_modules\webpack\lib\Compiler.js:284:29)
Change the command to au run --watch.
It should run using the dev environment by default, and there is a known issue with Webpack and the Aurelia CLI at the moment after one of the recent Webpack updates when running the application without the --watch flag.
Edit
Also, try installing dependencies with Yarn, npm install does not seem to be installing the packages correctly at the moment, however yarn install seems to work fine.
npm install yarn
yarn install

Cannot install Readline with Rakudo Perl 6 zef

I'm trying to install Readline.
(The system is Linux Mint Mate 18.3, the same is true for Lubuntu 17.10).
$ zef install Readline
The installation process begins but later is aborted with the following messages:
===> Searching for: Readline
===> Searching for missing dependencies: LibraryCheck
===> Testing: LibraryCheck:ver<0.0.6>:auth<github:jonathanstowe>
===> Testing [OK] for LibraryCheck:ver<0.0.6>:auth<github:jonathanstowe>
===> Testing: Readline:ver<0.0.2>:auth<github:drforr>
# Failed test 'initialize'
# at t/02-base.t line 10
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'macro-dumper lives'
# at t/02-base.t line 18
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Looks like you failed 1 test of 1
# Failed test 'dumpers'
# at t/02-base.t line 13
# Failed test 'set-prompt lives'
# at t/02-base.t line 27
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'expand-prompt lives'
# at t/02-base.t line 29
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'on-new-line-with-prompt lives'
# at t/02-base.t line 31
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'save-prompt lives'
# at t/02-base.t line 33
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'restore-prompt lives'
# at t/02-base.t line 35
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Looks like you failed 5 tests of 5
# Failed test 'prompt'
# at t/02-base.t line 24
# Failed test 'tilde-expand lives'
# at t/02-base.t line 46
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'tilde-expand-word lives'
# at t/02-base.t line 48
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Looks like you failed 2 tests of 2
# Failed test 'tilde'
# at t/02-base.t line 39
# Failed test 'prep-terminal lives'
# at t/02-base.t line 58
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'deprep-terminal lives'
# at t/02-base.t line 60
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'reset-terminal'
# at t/02-base.t line 62
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Looks like you failed 3 tests of 3
# Failed test 'terminal'
# at t/02-base.t line 54
# Failed test 'reset-line-state lives'
# at t/02-base.t line 70
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Looks like you failed 1 test of 1
# Failed test 'state'
# at t/02-base.t line 68
# Failed test 'free-undo-list lives'
# at t/02-base.t line 81
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'do-undo lives'
# at t/02-base.t line 83
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'begin-undo-group lives'
# at t/02-base.t line 85
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'end-undo-group lives'
# at t/02-base.t line 87
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Looks like you failed 4 tests of 4
# Failed test 'undo'
# at t/02-base.t line 80
# Failed test 'funmap-names lives'
# at t/02-base.t line 99
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Looks like you failed 1 test of 1
# Failed test 'funmap'
# at t/02-base.t line 91
# Failed test 'set-screen-size'
# at t/02-base.t line 106
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'reset-screen-size lives'
# at t/02-base.t line 110
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Looks like you failed 2 tests of 2
# Failed test 'screen'
# at t/02-base.t line 103
# Failed test 'insert-text lives'
# at t/02-base.t line 118
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'delete-text lives'
# at t/02-base.t line 120
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'kill-text lives'
# at t/02-base.t line 122
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'copy-text lives'
# at t/02-base.t line 124
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Looks like you failed 4 tests of 4
# Failed test 'text'
# at t/02-base.t line 114
# Failed test 'make-bare-keymap lives'
# at t/02-base.t line 132
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'copy-keymap lives'
# at t/02-base.t line 134
# Type check failed in binding to parameter '$map'; expected Readline::Keymap but got Any (Any)
# Failed test 'make-keymap lives'
# at t/02-base.t line 136
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'discard-keymap lives'
# at t/02-base.t line 138
# Type check failed in binding to parameter '$map'; expected Readline::Keymap but got Any (Any)
# Failed test 'get-keymap-by-name lives'
# at t/02-base.t line 145
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'get-keymap lives'
# at t/02-base.t line 147
# Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
# Failed test 'get-keymap-name lives'
# at t/02-base.t line 149
# Type check failed in binding to parameter '$map'; expected Readline::Keymap but got Any (Any)
# Failed test 'set-keymap lives'
# at t/02-base.t line 151
# Type check failed in binding to parameter '$map'; expected Readline::Keymap but got Any (Any)
# Looks like you failed 8 tests of 8
# Failed test 'keymap'
# at t/02-base.t line 128
Cannot locate native library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory
in method setup at /opt/rakudo-pkg/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 289
in method CALL-ME at /opt/rakudo-pkg/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 576
in method make-bare-keymap at /home/evb/.zef/store/perl6-readline.git/e2cf431a87c36d420a3f2737b2cbc160efeb9233/lib/Readline.pm (Readline) line 1040
in sub at t/02-base.t line 162
in sub subtest at /opt/rakudo-pkg/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 411
in sub at t/02-base.t line 161
in sub subtest at /opt/rakudo-pkg/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 411
in block <unit> at t/02-base.t line 155
===> Testing [FAIL]: Readline:ver<0.0.2>:auth<github:drforr>
Aborting due to test failure: Readline:ver<0.0.2>:auth<github:drforr> (use --force-test to override)
in code at /home/evb/.perl6/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 375
in method test at /home/evb/.perl6/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 353
in code at /home/evb/.perl6/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 530
in sub at /home/evb/.perl6/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 527
in method install at /home/evb/.perl6/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 633
in sub MAIN at /home/evb/.perl6/sources/C360CEB3AF792C33F65155FA82FDB7AB4467EC82 (Zef::CLI) line 152
in block <unit> at bin/zef line 3
locate libreadline.so gives the following output:
/lib/x86_64-linux-gnu/libreadline.so.5
/lib/x86_64-linux-gnu/libreadline.so.5.2
/lib/x86_64-linux-gnu/libreadline.so.6
/lib/x86_64-linux-gnu/libreadline.so.6.3
Many distributions, including debian/ubuntu and friends encourage a certain separation between packaging, more information in the debian.org packaging docs.
In particular, they encourage distribution of shared libraries for certain versions (such as .so.1) that are dependencies of other packages separate from the 'unversioned' .so that are more typically used for 'development' (in distribution packages ending in -dev).
From the above docs:
Please note that the development package should contain a symlink for the associated shared library without a version number. E.g.: /usr/lib/x86_64-linux-gnu/libfoo.so -> libfoo.so.1
For readline, that link is in the libreadline-dev package, which can be installed on mint/ubuntu/debian type systems like this: sudo apt-get install libreadline-dev
Perl 6 NativeCall docs discuss this too:
If you write native('foo') NativeCall will search libfoo.so under Unix
like system (libfoo.dynlib on OS X, foo.dll on win32). In most modern
system it will require you or the user of your module to install the
development package because it's recommended to always provide an
API/ABI version to a shared library, so libfoo.so ends often being a
symbolic link provided only by a development package.
To avoid that, the native trait allows you to specify the API/ABI
version. It can be a full version or just a part of it. (Try to stick
to Major version, some BSD code does not care for Minor.)
It looks like Readline does not specify a specific API/ABI version. (perhaps it should?)
Since it does not, it will look for the unversioned shared library (plain .so).
See this perl6-readline issue.
Until #drforr has time to sort out the versions, I created a temporarely fork that installs fine on Ubuntu 18.04 and all the distributions using libreadline version 7.
To install the module:
$ zef install https://github.com/nxadm/perl6-readline.git
If you want to patch the issue yourself (1 line patch), you can follow the instructions in my comment on a related issue.

Jitsi getting error in console - Error: Focus error, retry after

I am using jitsi for the first time.
I used this repository to install it.
But it is not working fine. I am not able to connect two clients through this.
In console I am getting following error
[JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>: UnhandledError: null Script: null Line: null Column: null StackTrace: Error: Focus error, retry after 1000
at o._allocateConferenceFocusError (moderator.js:388)
at moderator.js:320
at u.Handler.handler (app.bundle.min.js?v=1967:104)
at u.Handler.run (app.bundle.min.js?v=1967:104)
at app.bundle.min.js?v=1967:104
at Object.forEachChild (app.bundle.min.js?v=1967:104)
at u.Connection._dataRecv (app.bundle.min.js?v=1967:104)
at e.Bosh._onRequestStateChange (app.bundle.min.js?v=1967:105)
r # Logger.js:125
getGlobalOnErrorHandler # JitsiMeetJS.js:504
window.onerror # app.bundle.min.js?v=1967:87
callErrorHandler # GlobalOnErrorHandler.js:63
o._allocateConferenceFocusError # moderator.js:388
(anonymous) # moderator.js:320
(anonymous) # app.bundle.min.js?v=1967:104
run # app.bundle.min.js?v=1967:104
(anonymous) # app.bundle.min.js?v=1967:104
forEachChild # app.bundle.min.js?v=1967:104
_dataRecv # app.bundle.min.js?v=1967:104
_onRequestStateChange # app.bundle.min.js?v=1967:105
Logger.js:125 [modules/xmpp/moderator.js] <o._allocateConferenceFocusError>: Focus error, retry after 1000 <iq xmlns=​"jabber:​client" type=​"error" to=​"c9c1d353-8924-487a-b0f7-0e66a6d65d1d#10.207.139.88/​876e1e6b-4949-4239-aad2-66fe898c4234" from=​"focus.10.207.139.88" id=​"c8401ace-5f20-46d5-a0cd-47429ae4e929:​sendIQ">​…​</iq>​
r # Logger.js:125
o._allocateConferenceFocusError # moderator.js:389
(anonymous) # moderator.js:320
(anonymous) # app.bundle.min.js?v=1967:104
run # app.bundle.min.js?v=1967:104
(anonymous) # app.bundle.min.js?v=1967:104
forEachChild # app.bundle.min.js?v=1967:104
_dataRecv # app.bundle.min.js?v=1967:104
_onRequestStateChange # app.bundle.min.js?v=1967:105
app.bundle.min.js?v=1967:44 [conference.js] <e.value>: CONFERENCE FAILED: conference.focusDisconnected focus.10.207.139.88 1
Machine details.
Ubuntu : 14.06
I am using my self signed certificate here.
My case is similar to this one. But here also not a proper solution is advised. Below my current screenshot is attached.