Skip to content

npm i -g nativescript failed with node v6.1.0 #1767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tsonevn opened this issue May 17, 2016 · 10 comments
Closed

npm i -g nativescript failed with node v6.1.0 #1767

tsonevn opened this issue May 17, 2016 · 10 comments
Assignees
Labels

Comments

@tsonevn
Copy link
Contributor

tsonevn commented May 17, 2016

From @emptist on May 16, 2016 21:6

npm install failed with the following messages:

$ npm i -g nativescript
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN deprecated [email protected]: This package has been discontinued in favor of lodash@^4.0.0.
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
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 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 excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
/usr/local/bin/tns -> /usr/local/lib/node_modules/nativescript/bin/nativescript.js
/usr/local/bin/nativescript -> /usr/local/lib/node_modules/nativescript/bin/nativescript.js

> [email protected] install /usr/local/lib/node_modules/nativescript/node_modules/fibers
> node build.js || nodejs build.js

  CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:454:6: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]
                                        delete data;
                                        ^
                                              []
../src/fibers.cc:449:19: note: allocated with 'new[]' here
                                void** data = new void*[2];
                                              ^
1 warning generated.
  CXX(target) Release/obj.target/fibers/src/coroutine.o
  CC(target) Release/obj.target/fibers/src/libcoro/coro.o
  SOLINK_MODULE(target) Release/fibers.node
Installed in `/usr/local/lib/node_modules/nativescript/node_modules/fibers/bin/darwin-x64-v8-5.0/fibers.node`

> [email protected] install /usr/local/lib/node_modules/nativescript/node_modules/bufferutil
> node ./build.js

(node:676) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
Installed in `/usr/local/lib/node_modules/nativescript/node_modules/bufferutil/bin/darwin-x64-v8-5.0/bufferutil.node`

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

(node:753) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
  CXX(target) Release/obj.target/binding/src/binding.o
  SOLINK_MODULE(target) Release/binding.node
Installed in `/usr/local/lib/node_modules/nativescript/node_modules/ref/bin/darwin-x64-v8-5.0/binding.node`

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

(node:830) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.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
Traceback (most recent call last):
  File "./gyp-mac-tool", line 611, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./gyp-mac-tool", line 28, in main
    exit_code = executor.Dispatch(args)
  File "./gyp-mac-tool", line 43, in Dispatch
    return getattr(self, method)(*args[1:])
  File "./gyp-mac-tool", line 246, in ExecFilterLibtool
    if not libtool_re.match(line) and not libtool_re5.match(line):
TypeError: can't use a string pattern on a bytes-like object
make: *** [Release/libffi.a] 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:276: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:204:12)
gyp ERR! System Darwin 15.4.0
gyp ERR! command "/usr/local/Cellar/node/6.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/nativescript/node_modules/ffi
gyp ERR! node -v v6.1.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 
Build failed
/usr/local/lib
└── (empty)

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/6.1.0/bin/node" "/usr/local/bin/npm" "i" "-g" "nativescript"
npm ERR! node v6.1.0
npm ERR! npm  v3.8.6
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! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ffi 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 information on how to open an issue for this project with:
npm ERR!     npm bugs ffi
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ffi
npm ERR! There is likely additional logging output above.

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

Copied from original issue: NativeScript/NativeScript#2122

@tsonevn tsonevn self-assigned this May 17, 2016
@tsonevn
Copy link
Contributor Author

tsonevn commented May 17, 2016

From @emptist on May 16, 2016 21:12

I noticed this along other warnings:

Traceback (most recent call last):
  File "./gyp-mac-tool", line 611, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./gyp-mac-tool", line 28, in main
    exit_code = executor.Dispatch(args)
  File "./gyp-mac-tool", line 43, in Dispatch
    return getattr(self, method)(*args[1:])
  File "./gyp-mac-tool", line 246, in ExecFilterLibtool
    if not libtool_re.match(line) and not libtool_re5.match(line):
TypeError: can't use a string pattern on a bytes-like object
make: *** [Release/libffi.a] Error 1

@tsonevn
Copy link
Contributor Author

tsonevn commented May 17, 2016

Hi @emptist,

Thank you for reporting this issue.

I have reviewed your problem. However at the moment node 6 is not supported by many npm packages.
To install npm packages you should install Node.js (versions 0.10, 0.12, 4.x or 5.x), then npm i -g nativescript will work correctly.

I hope this is applicable for you.
Kind regards

@geminiyellow
Copy link

@tsonevn and also failed with v6.2.1

@enchev
Copy link
Contributor

enchev commented Jun 6, 2016

Merged with #1733

@enchev enchev closed this as completed Jun 6, 2016
@winnemucca
Copy link

winnemucca commented Jun 24, 2016

@enchev

Following the starter guide to get set up https://docs.nativescript.org/start/ns-setup-os-x.

After running through everything with node 6.2.1 I am getting the following errors when I run tns run ios --emulator. All I have inserted at this point was a console.log to see how things are connected. Wondering if there are still issues using node 6.2.1?

** BUILD SUCCEEDED **

Project successfully built.
Using  /Users/steven/projects/nativescript/rps-conf/platforms/ios/build/emulator/rpsconf.app
Starting iOS Simulator
Jun 24 06:10:12 jays-MacBook-Pro backboardd[34043]: SecTaskCopyDebugDescription: rpsconf[34189]
Jun 24 06:10:12 jays-MacBook-Pro backboardd[34043]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Jun 24 06:10:12 jays-MacBook-Pro backboardd[34043]: SecTaskCopyDebugDescription: rpsconf[34189]
Jun 24 06:10:12 jays-MacBook-Pro backboardd[34043]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Jun 24 06:10:12 jays-MacBook-Pro backboardd[34043]: SecTaskCopyDebugDescription: rpsconf[34189]
Jun 24 06:10:12 jays-MacBook-Pro backboardd[34043]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Jun 24 06:10:12 jays-MacBook-Pro backboardd[34043]: SecTaskCopyDebugDescription: rpsconf[34189]
Jun 24 06:10:12 jays-MacBook-Pro backboardd[34043]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Jun 24 06:10:12 jays-MacBook-Pro backboardd[34043]: SecTaskCopyDebugDescription: rpsconf[34189]
Jun 24 06:10:12 jays-MacBook-Pro rpsconf[34189]: assertion failed: 15E65 13E230: libxpc.dylib + 71506 [6F98A9DA-B46E-3A2B-88D4-92F1EC77477F]: 0x7d

@enchev
Copy link
Contributor

enchev commented Jun 24, 2016

Hey @winnemucca,

Are you using the CLI from our master branch or this is the official from NPM?

@winnemucca
Copy link

@enchev Using the CLI.

@enchev
Copy link
Contributor

enchev commented Jun 27, 2016

Hey @winnemucca,

That's for sure however is it from the official package in www.npmjs.org or our master branch in GitHub? :)

@winnemucca
Copy link

It is from the master branch on github.

@enchev
Copy link
Contributor

enchev commented Jun 27, 2016

Hey @rosen-vladimirov can you comment here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants