Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

@neutrinojs/create-project : not found #1014

Closed
terminalqo opened this issue Aug 6, 2018 · 6 comments
Closed

@neutrinojs/create-project : not found #1014

terminalqo opened this issue Aug 6, 2018 · 6 comments

Comments

@terminalqo
Copy link

terminalqo commented Aug 6, 2018

Bug or issue?

Please try to answer the following questions:

  • What version of Neutrino are you using?
    v8.3.0
  • Are you trying to use any presets? If so, which ones, and what versions?
    react
  • Are you using the Yarn client or the npm client? What version?
    yarn@1.9.2
  • What version of Node.js are you using?
    8.11.3
  • What operating system are you using?
    ubuntu
  • What did you do?
    try to yarn create @neutrinojs/project react_demo
  • What did you expect to happen?
    finish the initial install.
  • What actually happened, contrary to your expectations?
    _20180806145408

As a contrast, I can finish yarn create react-app my-app in my computer. no error.

Same error in my windows 10 + yarn@1.9.4.
image

@terminalqo
Copy link
Author

I did 2 step :

1. yarn global add @neutrinojs/create-project
2. create-project demo 

then:

create-project: command not found

@terminalqo
Copy link
Author

terminalqo commented Aug 6, 2018

Ok,finally, I worked it out, I put it here to help someone who gonna need it.( sorry for my pool English..

  1. Edit your ~/.bashrc , add export PATH="$PATH:$HOME/.config/yarn/global/node_modules/.bin".
  2. yarn global add @neutrinojs/create-project
  3. create-project xxx.

Note that, why ~/.bashrc ? Because I edit my ~/.bash_profile and every time I restart computer , it will lose effect. https://stackoverflow.com/questions/40317578/yarn-global-command-not-working/40333409#40333409

Even though I did the above, I still can't use yarn create @neutrinojs/project xxx .
But create-project xxx worked.

If I am wrong, please correct me.

reference:

  1. yarn global add doesn't install binaries properly yarnpkg/yarn#648

@terminalqo
Copy link
Author

weishijun@weishijun-Aspire-4820TG:~$ yarn create @neutrinojs/project fff
yarn create v1.9.2
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

warning Your current version of Yarn is out of date. The latest version is "1.9.4", while you're on "1.9.2".
info To upgrade, run the following command:
$ sudo apt-get update && sudo apt-get install yarn
success Installed "@neutrinojs/create-project@8.3.0" with binaries:
      - create-project
[#####################################################################] 332/332/bin/sh: 1: /home/weishijun/.yarn/bin/@neutrinojs/create-project: not found
error Command failed.
Exit code: 127
Command: /home/weishijun/.yarn/bin/@neutrinojs/create-project
Arguments: fff
Directory: /home/weishijun
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.


weishijun@weishijun-Aspire-4820TG:~$ create-project neutrino_demo
                          _          _
      _ __    ___  _   _ | |_  _ __ (_) _ __    ___
     | '_ \  / _ \| | | || __|| '__|| || '_ \  / _ \
     | | | ||  __/| |_| || |_ | |   | || | | || (_) |
     |_| |_| \___| \__,_| \__||_|   |_||_| |_| \___/
    
Welcome to Neutrino! 👋
To help you create your new project, I am going to ask you a few questions.

? 🤔  First up, what would you like to create? (Use arrow keys)
❯ A web or Node.js application 
  A library 
  Components 

@yordis
Copy link

yordis commented Aug 16, 2018

@weishijun14 could you close this one?

@terminalqo
Copy link
Author

So this situation is not a bug or problem? It's my personal fault?

@yordis
Copy link

yordis commented Aug 17, 2018

@weishijun14 well, yes. The issue is Yarn and your setup no this package.

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

No branches or pull requests

2 participants