GithubHelp home page GithubHelp logo

NPM Install Fail about icenium-cli HOT 7 CLOSED

icenium avatar icenium commented on August 16, 2024
NPM Install Fail

from icenium-cli.

Comments (7)

rosen-vladimirov avatar rosen-vladimirov commented on August 16, 2024

Hi @workstein ,
It looks like there's some problem with the build tools on your machine. The key error from the log is:
ld: library not found for -lgcc_s.10.5
I've tried to search for similar errors and here's one link that might help. Could you try the suggested solution and see if it helps?

from icenium-cli.

workstein avatar workstein commented on August 16, 2024

Hello Rosen,

Thank you for trying to help me!

I tried running
xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

So I did all the software and Xcode updates via AppleStore and the npm error still.

Do you have any other ideas?

Thank you again!

from icenium-cli.

ligaz avatar ligaz commented on August 16, 2024

Can you please try to install without sudo?

from icenium-cli.

workstein avatar workstein commented on August 16, 2024

Sure!

npm install appbuilder -g

npm WARN locking Error: EACCES, open '/Users/gabrielstein/.npm/_locks/appbuilder-bf022655a4f5f7e3.lock'
npm WARN locking at Error (native)
npm WARN locking /Users/gabrielstein/.npm/_locks/appbuilder-bf022655a4f5f7e3.lock failed { [Error: EACCES, open '/Users/gabrielstein/.npm/_locks/appbuilder-bf022655a4f5f7e3.lock']
npm WARN locking errno: -13,
npm WARN locking code: 'EACCES',
npm WARN locking path: '/Users/gabrielstein/.npm/_locks/appbuilder-bf022655a4f5f7e3.lock' }
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "appbuilder" "-g"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2

npm ERR! Attempt to unlock /usr/local/lib/node_modules/appbuilder, which hasn't been locked
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! /Users/gabrielstein/npm-debug.log

Then I gave the right permissions as said here > npm/npm#4815

sudo chown -R myuser ~/.npm
sudo chown -R myuser /usr/local/lib/node_modules
sudo chown -R myuser /usr/local

After this I was able to run the npm install without sudo but the same error is returned.

npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN excluding symbolic link docs/assets/ir_black.css -> ../../node_modules/highlight.js/src/styles/ir_black.css
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.5","npm":"2.11.2"})

[email protected] install /usr/local/lib/node_modules/appbuilder/node_modules/fibers
node ./build.js

darwin-x64-v8-3.28 exists; testing
Binary is fine; exiting

[email protected] install /usr/local/lib/node_modules/appbuilder/node_modules/ref
node ./build.js

child_process: customFds option is deprecated, use stdio instead.
CXX(target) Release/obj.target/binding/src/binding.o
SOLINK_MODULE(target) Release/binding.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/binding.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/appbuilder/node_modules/ref
gyp ERR! node -v v0.12.5
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
Build failed
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Resources -> Versions/Current/Resources
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Test Framework -> Versions/Current/Test Framework
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Versions/Current -> A
npm WARN excluding symbolic link docs/assets/ir_black.css -> ../../node_modules/highlight.js/src/styles/ir_black.css
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Resources -> Versions/Current/Resources
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Test Framework -> Versions/Current/Test Framework
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Versions/Current -> A
npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
/

[email protected] install /usr/local/lib/node_modules/appbuilder/node_modules/ffi
node ./build.js

child_process: customFds option is deprecated, use stdio instead.
CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o
CC(target) Release/obj.target/ffi/deps/libffi/src/types.o
CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/darwin.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/darwin64.o
LIBTOOL-STATIC Release/libffi.a
CXX(target) Release/obj.target/ffi_bindings/src/ffi.o
CXX(target) Release/obj.target/ffi_bindings/src/callback_info.o
CXX(target) Release/obj.target/ffi_bindings/src/threaded_callback_invokation.o
SOLINK_MODULE(target) Release/ffi_bindings.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/ffi_bindings.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/appbuilder/node_modules/ffi
gyp ERR! node -v v0.12.5
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
Build failed
npm WARN installMany normalize-package-data was bundled with [email protected], but bundled package wasn't found in unpacked tree
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "appbuilder" "-g"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node ./build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node ./build.js'.
npm ERR! This is most likely a problem with the ref package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls ref
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/gabrielstein/npm-debug.log

from icenium-cli.

rosen-vladimirov avatar rosen-vladimirov commented on August 16, 2024

Hi @workstein ,
I believe there's some problem with C/C++ libs on your machine. Here's one similar issue, can you try one of the suggested solutions and see if it helps. Based on my research, I would recommend using:

export C_INCLUDE_PATH=/Developer/SDKs/MacOSX10.5.sdk/usr/include
export LIBRARY_PATH=/Developer/SDKs/MacOSX10.5.sdk/usr/lib

and after that

npm install appbuilder -g

If this works, then you can add above lines to your shell profile (~/.profile) to make the change permanent.

Could you try this and inform us if it works?

from icenium-cli.

workstein avatar workstein commented on August 16, 2024

I realized that I don't have the sdk on "/Developer/SDKs/MacOSX10.5.sdk/" so I downloaded it using this repo https://github.com/phracker/MacOSX-SDKs to /Users/gabrielstein/MacOSX10.5.sdk then inserted into ~/.bash_profile the following lines:
export C_INCLUDE_PATH=/Users/gabrielstein/MacOSX10.5.sdk/usr/include
export LIBRARY_PATH=/Users/gabrielstein/MacOSX10.5.sdk/usr/lib

then restarted my OSX session and I was able to run npm install appbuilder -g normally.

Thank you for the help, I was going crazy. haha

from icenium-cli.

rosen-vladimirov avatar rosen-vladimirov commented on August 16, 2024

I'm glad you have resolved the issue. I'm closing it now, but feel free to contact us in case you have any other problems or concerns.

from icenium-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.