Okay
  Public Ticket #1851052
error npm install
Closed

Comments

  • desoftware started the conversation

    ERROR install Clear

    ----------------------------------------------------------------------------------

    C:\xampp\www\sai>node -v
    v6.10.0

    C:\xampp\www\sai>php -v
    PHP 7.3.1 (cli) (built: Jan  9 2019 22:43:14) ( ZTS MSVC15 (Visual C++ 2017) x86 )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.1, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.3.1, Copyright (c) 1999-2018, by Zend Technologies

    C:\xampp\www\sai>npm version
    { clear_vue: '1.0.0',
      npm: '3.10.10',
      ares: '1.10.1-DEV',
      http_parser: '2.7.0',
      icu: '58.2',
      modules: '48',
      node: '6.10.0',
      openssl: '1.0.2k',
      uv: '1.9.1',
      v8: '5.1.281.93',
      zlib: '1.2.8' }
    ----------------------------------------------------------------------------------

    C:\xampp\www\sai>npm install
    npm WARN deprecated vue-handsontable-official@1.1.1: Handsontable for Vue is now available as @handsontable/vue.
    npm ERR! git rev-list -n1 master: fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
    npm ERR! git rev-list -n1 master: Use '--' to separate paths from revisions, like this:
    npm ERR! git rev-list -n1 master: 'git <command> [<revision>...] -- [<file>...]'
    npm ERR! git rev-list -n1 master:
    npm ERR! addLocal Could not install C:\Users\oviedo\AppData\Local\Temp\npm-14640-8b90c6e3\git-cache-f3d673cb\9132dea0d69b280178522668c78193a72c1bb5e9
    npm ERR! addLocal Could not install C:\Users\oviedo\AppData\Local\Temp\npm-14640-8b90c6e3\git-cache-2d30774f\b111a6609f86e615aff5b18e5aa3b61fd58cb02d
    npm ERR! addLocal Could not install C:\Users\oviedo\AppData\Local\Temp\npm-14640-8b90c6e3\git-cache-6820453a\57e637782d5c8e9f423122ceb25d40c763e8dc42
    npm ERR! addLocal Could not install C:\Users\oviedo\AppData\Local\Temp\npm-14640-8b90c6e3\git-cache-5720ed2c\4fe396f067a70270714ce2094a8eaad7c142ee0d
    npm ERR! addLocal Could not install C:\Users\oviedo\AppData\Local\Temp\npm-14640-8b90c6e3\git-cache-560c2188\323ec932556362034326bf5258f17ccbc93cba63
    npm ERR! addLocal Could not install C:\Users\oviedo\AppData\Local\Temp\npm-14640-8b90c6e3\git-cache-0038d753\ad5ed84802fea2b865ce07220435a3a16b266837
    npm ERR! Windows_NT 10.0.17134
    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
    npm ERR! node v6.10.0
    npm ERR! npm  v3.10.10
    npm ERR! code 128 npm ERR! Command failed: git -c core.longpaths=true rev-list -n1 master
    npm ERR! fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
    npm ERR! Use '--' to separate paths from revisions, like this:
    npm ERR! 'git <command> [<revision>...] -- [<file>...]'
    npm ERR!
    npm ERR!
    npm ERR! If you need help, you may report this error at:
    npm ERR!     npm ERR! Please include the following file with any support request:
    npm ERR!     C:\xampp\www\sai\npm-debug.log

    Attached files:  npm-debug.log

  •  99
    Jyostna replied

    Hello,

    Can I know which project folder name you are compiling in the clear.

    Thanks,

  • desoftware replied

    The project is Vue-laravel

  •  99
    Jyostna replied

    Hello,

    Actually the project is built with "yarn" version.so,all packages are updated through yarn.
    But, you are using "npm install" Which may leads to version difference in npm packages.
    So,better use "yarn".

    please run the following commands for installation

    1. yarn install 

    2. composer install 

    3. cp .env.example .env

    4. php artisan key:generate

    5. npm run dev

    if any permission issue please following the documentation as given below

    https://lorvent.gitbooks.io/clear/laravel-version.html

    Further any issues, let us know

    Thanks,