Hello,
I just run the install command : source <(curl https://npkproject.io/cloudshell_install.sh)
And I have the following error. I got the same error if I do npm install yargs
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[+] Installing Node.js prerequisites. This can take up to two minutes, and may appear frozen. DON'T INTERRUPT IT.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /aws/mde/npk/node_modules/@hanazuki/node-jsonnet
npm ERR! command failed
npm ERR! command sh -c cmake-js build --CDCMAKE_EXPORT_COMPILE_COMMANDS=1
npm ERR! [
npm ERR! '/aws/mde/nvm/versions/node/v17.0.1/bin/node',
npm ERR! '/aws/mde/npk/node_modules/.bin/cmake-js',
npm ERR! 'build',
npm ERR! '--CDCMAKE_EXPORT_COMPILE_COMMANDS=1'
npm ERR! ]
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- The C compiler identification is GNU 7.3.1
npm ERR! -- The CXX compiler identification is GNU 7.3.1
npm ERR! -- Check for working C compiler: /usr/bin/cc
npm ERR! -- Check for working C compiler: /usr/bin/cc -- broken
npm ERR! -- Configuring incomplete, errors occurred!
npm ERR! See also "/aws/mde/npk/node_modules/@hanazuki/node-jsonnet/build/CMakeFiles/CMakeOutput.log".
npm ERR! See also "/aws/mde/npk/node_modules/@hanazuki/node-jsonnet/build/CMakeFiles/CMakeError.log".
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info CMD CONFIGURE
npm ERR! info RUN [
npm ERR! info RUN 'cmake',
npm ERR! info RUN '/aws/mde/npk/node_modules/@hanazuki/node-jsonnet',
npm ERR! info RUN '--no-warn-unused-cli',
npm ERR! info RUN '-G',
npm ERR! info RUN 'Unix Makefiles',
npm ERR! info RUN '-DCMAKE_JS_VERSION=6.3.0',
npm ERR! info RUN '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/aws/mde/npk/node_modules/@hanazuki/node-jsonnet/build/Release',
npm ERR! info RUN '-DCMAKE_JS_INC=/home/cloudshell-user/.cmake-js/node-x64/v17.0.1/include/node',
npm ERR! info RUN '-DCMAKE_JS_SRC=',
npm ERR! info RUN '-DNODE_RUNTIME=node',
npm ERR! info RUN '-DNODE_RUNTIMEVERSION=17.0.1',
npm ERR! info RUN '-DNODE_ARCH=x64',
npm ERR! info RUN '-DCMAKE_EXPORT_COMPILE_COMMANDS=1'
npm ERR! info RUN ]
npm ERR! CMake Error at /usr/share/cmake3/Modules/CMakeTestCCompiler.cmake:52 (message):
npm ERR! The C compiler
npm ERR!
npm ERR! "/usr/bin/cc"
npm ERR!
npm ERR! is not able to compile a simple test program.
npm ERR!
npm ERR! It fails with the following output:
npm ERR!
npm ERR! Change Dir: /aws/mde/npk/node_modules/@hanazuki/node-jsonnet/build/CMakeFiles/CMakeTmp
npm ERR!
npm ERR! Run Build Command:"/usr/bin/gmake" "cmTC_c48e2/fast"
npm ERR! /usr/bin/gmake -f CMakeFiles/cmTC_c48e2.dir/build.make CMakeFiles/cmTC_c48e2.dir/build
npm ERR! gmake[1]: Entering directory `/aws/mde/npk/node_modules/@hanazuki/node-jsonnet/build/CMakeFiles/CMakeTmp'
npm ERR! Building C object CMakeFiles/cmTC_c48e2.dir/testCCompiler.c.o
npm ERR! /usr/bin/cc -o CMakeFiles/cmTC_c48e2.dir/testCCompiler.c.o -c /aws/mde/npk/node_modules/@hanazuki/node-jsonnet/build/CMakeFiles/CMakeTmp/testCCompiler.c
npm ERR! Linking C executable cmTC_c48e2
npm ERR! /usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_c48e2.dir/link.txt --verbose=1
npm ERR! /usr/bin/cc CMakeFiles/cmTC_c48e2.dir/testCCompiler.c.o -o cmTC_c48e2
npm ERR! collect2: fatal error: cannot find 'ld'
npm ERR! compilation terminated.
npm ERR! gmake[1]: *** [cmTC_c48e2] Error 1
npm ERR! gmake[1]: Leaving directory `/aws/mde/npk/node_modules/@hanazuki/node-jsonnet/build/CMakeFiles/CMakeTmp'
npm ERR! gmake: *** [cmTC_c48e2/fast] Error 2
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR! CMake will not be able to correctly generate this project.
npm ERR! Call Stack (most recent call first):
npm ERR! CMakeLists.txt:3 (project)
npm ERR!
npm ERR!
npm ERR! ERR! OMG Process terminated: 1
npm ERR! A complete log of this run can be found in:
npm ERR! /home/cloudshell-user/.npm/_logs/2022-05-06T15_15_53_581Z-debug-0.log
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'yargs'
Require stack:
- /aws/mde/npk/bin/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/aws/mde/npk/bin/index.js:5:15)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/aws/mde/npk/bin/index.js' ]
}
Node.js v17.0.1
Hello, I just run the install command :
source <(curl https://npkproject.io/cloudshell_install.sh)
And I have the following error. I got the same error if I donpm install yargs