Skip to content
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

"postinstall": "ln -nsf ../src/js node_modules/app" fails when install from npm #13

Open
PixelsCommander opened this issue Nov 20, 2016 · 4 comments

Comments

@PixelsCommander
Copy link
Contributor

"postinstall": "ln -nsf ../src/js node_modules/app" fails when install from npm . What is the purpose of this? Can it just be removed?

@brucelane
Copy link
Contributor

it fails for me on Windows, ok on MacOs.
I don't know the purpose either...

@marcoose777
Copy link

Epic fail here too, unfortunately not experienced enough with npm/node.js to help debug

FYI: OS x86_64 Linux Arch (Manjaro)

Seems like the post-install script/line in the json file tries to create a symlink to a non-existent file called app. The warning lines don't look very optimistic either. Regressing to Kodelife.

output:
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

[email protected] postinstall /home/spongebob/node_modules/glslEditor
ln -nsf ../src/js node_modules/app

ln: failed to create symbolic link 'node_modules/app': No such file or directory
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/home/spongebob/package.json'
npm WARN spongebob No description
npm WARN spongebob No repository field.
npm WARN spongebob No README data
npm WARN spongebob No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: ln -nsf ../src/js node_modules/app
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'ln -nsf ../src/js node_modules/app'.

@lagorsse
Copy link

lagorsse commented Jun 25, 2017

Yep same issue here, I tried to remove it from local repo and install it with local dependencies, it's installed, but I have some Failed to load resource: net::ERR_FILE_NOT_FOUND

I think ln -nsf ../src/js node_modules/app should be ln -nsf ../src/js ../node_modules/app cause they are on the same level.

it doesn't occur if I clone the repo, just if I had dependency to an npm project

@hahaxiaowai
Copy link

so.. this issue be solved? How?

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

No branches or pull requests

5 participants