React-native-interactable: Windows npm install issue

Created on 2 Aug 2017  路  9Comments  路  Source: wix/react-native-interactable

When I upgrade to 0.1.1, I got error from post install script on windows.
saying "ln -s " something. Obivisouly the "ln -s" command is not windows command.
Please verify it.

Most helpful comment

Same issue. Windows x64.

npm ERR! Failed at the [email protected] postinstall script 'ln -sf lib/{ios,android} .'.

SOLUTION: Run "npm install" or "yarn add" from git bash.

All 9 comments

I found the problem is caused by post install script in package.json

 "postinstall": "ln -s lib/{ios,android} ."

Is that possible to make this works in windows environment as well?

Same issue and Android link missing as well

Save isue! 'ln' is not recognized as an internal or external command

Wow same issue still. Nobody got a fix or workaround for this one?

I'll test this issue. So no ones update this issue about 3 months ago. We need more PR.

Same issue. Windows x64.

npm ERR! Failed at the [email protected] postinstall script 'ln -sf lib/{ios,android} .'.

SOLUTION: Run "npm install" or "yarn add" from git bash.

Issues #129 and #140 both seem to be about symlink malfunctions. Where I see it is when running under Jenkins where ./gradlew invokes NPM/Yarn via a plugin that appears to be older than my workstation. A very frustrating example of, "It works on my computer!"

Jenkins $ npm --version   # my laptop npm version is 5.6.0
3.10.10
Jenkins $ node --version  # my laptop node version is v9.4.0
v6.13.1

Eventually found a workaround by specifyingscript-shell=/bin/bash in my .npmrc file.

This issue is fixed in #211. Would be nice to get it merged and stop this torrent of installing problems.

Was this page helpful?
0 / 5 - 0 ratings