NativeScript安装错误“spawn ENOTDIR”

时间:2018-04-05 13:52:28

标签: node.js macos npm installation nativescript

无法通过Node v8.9.4

下的命令<layout xmlns:android="http://schemas.android.com/apk/res/android"> <data> <variable name="category" type="com.test.db.entity.Category" /> <variable name="categoryClickCallback" type="com.test.ui.CategoryAdapter.CategoryClickCallback" /> </data> <android.support.constraint.ConstraintLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content"> ........................................... .................................................. <ImageView android:id="@+id/deleteImageView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:layout_marginEnd="8dp" android:layout_marginTop="8dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" android:onClick="@{() -> categoryClickCallback.onClickDelete(category)}" app:srcCompat="@mipmap/icon_delete" /> ............................................ ........................................... </android.support.constraint.ConstraintLayout> </layout> 安装NativeScript

回溯:

npm i -g nativescript

输出 $ npm i -g nativescript /Users/rayman/.nvm/versions/node/v8.9.4/bin/nativescript -> /Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/bin/tns /Users/rayman/.nvm/versions/node/v8.9.4/bin/tns -> /Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/bin/tns > fsevents@1.1.2 install /Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/node_modules/fsevents > node install [fsevents] Success: "/Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed Pass --update-binary to reinstall or --build-from-source to recompile > nativescript@3.4.3 postinstall /Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript > node postinstall.js spawn ENOTDIR Failed to display command help { Error: Unknown command 'post-install-cli'. Try '$ tns help' for a full list of supported commands. at Errors.fail (/Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/lib/common/errors.js:125:28) at Errors.failWithoutHelp (/Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/lib/common/errors.js:134:21) at HelpService.<anonymous> (/Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/lib/common/services/help-service.js:140:26) at Generator.next (<anonymous>) at fulfilled (/Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/lib/common/services/help-service.js:4:58) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) name: 'Exception', message: 'Unknown command \'post-install-cli\'. Try \'$ tns help\' for a full list of supported commands.', stack: 'Error: Unknown command \'post-install-cli\'. Try \'$ tns help\' for a full list of supported commands.\n at Errors.fail (/Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/lib/common/errors.js:125:28)\n at Errors.failWithoutHelp (/Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/lib/common/errors.js:134:21)\n at HelpService.<anonymous> (/Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/lib/common/services/help-service.js:140:26)\n at Generator.next (<anonymous>)\n at fulfilled (/Users/rayman/.nvm/versions/node/v8.9.4/lib/node_modules/nativescript/lib/common/services/help-service.js:4:58)\n at <anonymous>\n at process._tickCallback (internal/process/next_tick.js:188:7)', errorCode: 127, suppressCommandHelp: true, proxyAuthenticationRequired: false } + nativescript@3.4.3 added 708 packages in 14.695s

tns post-install-cli --log trace

0 个答案:

没有答案