Coder Social home page Coder Social logo

Comments (17)

viralsolani avatar viralsolani commented on May 21, 2024 2

@vrkansagara we have resolved this issue. Changed few dependency and we have tested it with different node Versions.

from laravel-adminpanel.

bvipul avatar bvipul commented on May 21, 2024

Please run npm run dev before launching the application

from laravel-adminpanel.

Raushn avatar Raushn commented on May 21, 2024

error should be generated

from laravel-adminpanel.

Raushn avatar Raushn commented on May 21, 2024

@ dev C:\xampp\htdocs\laravel-adminpanel-master
npm run development

@ development C:\xampp\htdocs\laravel-adminpanel-master
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

internal/modules/cjs/loader.js:573
throw err;
^

Error: Cannot find module 'C:\xampp\htdocs\laravel-adminpanel-master\node_modules\laravel-mix\setup\webpack.config.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
at Function.Module._load (internal/modules/cjs/loader.js:497:25)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at requireConfig (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\webpack\bin\convert-argv.js:97:18)
at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\webpack\bin\convert-argv.js:104:17
at Array.forEach ()
at module.exports (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\webpack\bin\convert-argv.js:102:15)
at yargs.parse (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\webpack\bin\webpack.js:171:41)
at Object.Yargs.self.parse (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\yargs\yargs.js:533:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\A 5\AppData\Roaming\npm-cache_logs\2018-05-25T10_38_56_904Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: npm run development
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\A 5\AppData\Roaming\npm-cache_logs\2018-05-25T10_38_56_966Z-debug.log

from laravel-adminpanel.

Raushn avatar Raushn commented on May 21, 2024

[email protected] install C:\xampp\htdocs\laravel-adminpanel-master\node_modules\node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-64_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

[email protected] postinstall C:\xampp\htdocs\laravel-adminpanel-master\node_modules\node-sass
node scripts/build.js

Building: C:\Program Files\nodejs\node.exe C:\xampp\htdocs\laravel-adminpanel-master\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\Program Files\nodejs\node.exe',
gyp verb cli 'C:\xampp\htdocs\laravel-adminpanel-master\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:80:29)
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:89:16
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:165:21)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:80:29)
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:89:16
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:165:21)
gyp verb which failed stack: 'Error: not found: python2\n at getNotFoundError (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:13:12)\n at F (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:68:19)\n at E (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:80:29)\n at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:89:16\n at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\index.js:42:5\n at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:165:21)',
gyp verb which failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which failed Error: not found: python
gyp verb which failed at getNotFoundError (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:80:29)
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:89:16
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:165:21)
gyp verb which failed python { Error: not found: python
gyp verb which failed at getNotFoundError (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:80:29)
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:89:16
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:165:21)
gyp verb which failed stack: 'Error: not found: python\n at getNotFoundError (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:13:12)\n at F (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:68:19)\n at E (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:80:29)\n at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\which\which.js:89:16\n at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\index.js:42:5\n at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\isexe\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:165:21)',
gyp verb which failed code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\xampp\htdocs\laravel-adminpanel-master\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\xampp\htdocs\laravel-adminpanel-master\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:165:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\xampp\htdocs\laravel-adminpanel-master\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\xampp\htdocs\laravel-adminpanel-master\node_modules\node-sass
gyp ERR! node -v v10.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\A 5\AppData\Roaming\npm-cache_logs\2018-05-25T10_40_23_188Z-debug.log

from laravel-adminpanel.

Raushn avatar Raushn commented on May 21, 2024

please help me how to install npm
Always generating error to installing npm

from laravel-adminpanel.

bvipul avatar bvipul commented on May 21, 2024

Most issues of npm install is solved by using correct version of node and npm, node v. 8.8.1 and npm v5.6 or above ..try with these settings

from laravel-adminpanel.

Raushn avatar Raushn commented on May 21, 2024

node v.10.1.0
npm v5.6

from laravel-adminpanel.

lawdoc71 avatar lawdoc71 commented on May 21, 2024

yarn install
Yarn run dev

from laravel-adminpanel.

viralsolani avatar viralsolani commented on May 21, 2024

I've checked with the latest node (10.4.1) and (npm 6.1.0). And found the issue. It is mostly because of node-sass has not found bindings. I've installed node-sass as the dependency.

To Resolve issue :

  • remove node-modules
  • remove package-lock.json
  • run : npm install --save node-sass
  • run : npm install
  • run : npm run dev

Or take pull of develop branch and follow below steps.

  • remove node-modules
  • remove package-lock.json
  • run : npm install
  • run : npm run dev

Make sure you have full permission of node_modules folder.

Let me know if you still find issues.

from laravel-adminpanel.

bilal26036 avatar bilal26036 commented on May 21, 2024

@lawdoc71 i tried to install yarn this error is showing
"C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" install yarn

Standard error:
npm ERR! file C:\xampp\htdocs\laravel-adminpanel-master\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected string in JSON at position 1431 while parsing '{
npm ERR! "private": true,
npm ERR! "scripts": {
npm ERR! '
npm ERR! File: C:\xampp\htdocs\laravel-adminpanel-master\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ArsalanLap\AppData\Roaming\npm-cache_logs\2018-06-27T21_43_00_180Z-debug.log

from laravel-adminpanel.

vrkansagara avatar vrkansagara commented on May 21, 2024

Just follow bellow steps to clean this issue.

  1. Remove existing node_module folder

  2. Run npm install

  3. Run npm run development This will generate the mix manifest file.

  4. (Optional) If you are running 127.0.0.1:8080 kind of web server then stop it first and start again.

from laravel-adminpanel.

bvipul avatar bvipul commented on May 21, 2024

@Raushn I am going to close this issue, as you haven't replied for more than 15 days.

from laravel-adminpanel.

vrkansagara avatar vrkansagara commented on May 21, 2024

The issue should be reopen as reporter doesn't confirmed yet.

from laravel-adminpanel.

Raushn avatar Raushn commented on May 21, 2024

Thank you

from laravel-adminpanel.

NayHtwe24 avatar NayHtwe24 commented on May 21, 2024

I have a problem same issuses. How to solve this problem?

λ npm run dev

@ dev C:\laragon\www\laravel-adminpanel
npm run development

@ development C:\laragon\www\laravel-adminpanel
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

C:\laragon\www\laravel-adminpanel\node_modules\webpack-cli\bin\cli.js:235
throw err;
^

TypeError: Cannot read property 'sass' of undefined
at Object. (C:\laragon\www\laravel-adminpanel\webpack.mix.js:15:5)
at Module._compile (C:\laragon\www\laravel-adminpanel\node_modules\v8-compile-cache\v8-compile-cache.js:178:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (C:\laragon\www\laravel-adminpanel\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
at Object. (C:\laragon\www\laravel-adminpanel\node_modules\laravel-mix\setup\webpack.config.js:12:1)
at Module._compile (C:\laragon\www\laravel-adminpanel\node_modules\v8-compile-cache\v8-compile-cache.js:178:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (C:\laragon\www\laravel-adminpanel\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
at WEBPACK_OPTIONS (C:\laragon\www\laravel-adminpanel\node_modules\webpack-cli\bin\convert-argv.js:115:13)
at requireConfig (C:\laragon\www\laravel-adminpanel\node_modules\webpack-cli\bin\convert-argv.js:117:6)
at C:\laragon\www\laravel-adminpanel\node_modules\webpack-cli\bin\convert-argv.js:124:17
at Array.forEach ()
at module.exports (C:\laragon\www\laravel-adminpanel\node_modules\webpack-cli\bin\convert-argv.js:122:15)
at yargs.parse (C:\laragon\www\laravel-adminpanel\node_modules\webpack-cli\bin\cli.js:232:39)
at Object.parse (C:\laragon\www\laravel-adminpanel\node_modules\webpack-cli\node_modules\yargs\yargs.js:567:18)
at C:\laragon\www\laravel-adminpanel\node_modules\webpack-cli\bin\cli.js:210:8
at Object. (C:\laragon\www\laravel-adminpanel\node_modules\webpack-cli\bin\cli.js:500:3)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (C:\laragon\www\laravel-adminpanel\node_modules\webpack\bin\webpack.js:155:2)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\NayHtwe\AppData\Roaming\npm-cache_logs\2019-01-17T10_58_33_807Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: npm run development
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\NayHtwe\AppData\Roaming\npm-cache_logs\2019-01-17T10_58_33_947Z-debug.log
screenshot-127 0 0 1-8000-2019 01 17-15-36-33

from laravel-adminpanel.

ramkumawathis avatar ramkumawathis commented on May 21, 2024

Plz help me. Am unable to npm install .
image
Am try many time but at each time so error in npm install command run.
am follow these command.

from laravel-adminpanel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.