Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

npm run dev erors #41

Open
Alexandr-Lazariev opened this issue Jul 20, 2018 · 3 comments
Open

npm run dev erors #41

Alexandr-Lazariev opened this issue Jul 20, 2018 · 3 comments

Comments

@Alexandr-Lazariev
Copy link

Alexandr-Lazariev commented Jul 20, 2018

Hey guys,

I've got this error after I run "npm run dev"
I copied config files but I didn't generate new values , but I think it's not the case here, right?

fs.js:133
  throw new ERR_INVALID_CALLBACK();
  ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:133:9)
    at Object.writeFile (fs.js:1139:14)
    at err (/Users/lazarieo/git-private/sample-media-pwa/build/transpile-sass.js:54:10)
    at /Users/lazarieo/git-private/sample-media-pwa/node_modules/mkdirp/index.js:48:26
    at FSReqWrap.oncomplete (fs.js:159:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! googlechrome-biograf@12.1.6 build-sass: `node build/transpile-sass.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the googlechrome-biograf@12.1.6 build-sass 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!     /Users/lazarieo/.npm/_logs/2018-07-20T11_15_37_581Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! googlechrome-biograf@12.1.6 build: `npm run clean-dist && npm run make-dist && npm run make-client && npm run copy-all && npm run build-js && npm run build-sass && npm run build-resource-list`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the googlechrome-biograf@12.1.6 build 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!     /Users/lazarieo/.npm/_logs/2018-07-20T11_15_37_613Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! googlechrome-biograf@12.1.6 dev: `npm run build && parallelshell "npm run watch" "npm run serve"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the googlechrome-biograf@12.1.6 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!     /Users/lazarieo/.npm/_logs/2018-07-20T11_15_37_642Z-debug.log

npm version 6.1.0
node version 10.5.0

@ghost
Copy link

ghost commented Sep 13, 2018

I also get error
`> googlechrome-biograf@12.1.6 copy-client C:\Users\User\Desktop\sample-media-pwa

copy "src/client//." "!src/client/scripts//." "!src/client/styles//." "!src/client/videos//." dist/client

The syntax of the command is incorrect.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! googlechrome-biograf@12.1.6 copy-client: copy "src/client/**/*.*" "!src/client/scripts/**/*.*" "!src/client/styles/**/*.*" "!src/client/videos/**/*.*" dist/client
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the googlechrome-biograf@12.1.6 copy-client 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\User\AppData\Roaming\npm-cache_logs\2018-09-13T03_34_36_502Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! googlechrome-biograf@12.1.6 copy-all: npm run copy-server && npm run copy-config && npm run copy-views && npm run copy-client
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the googlechrome-biograf@12.1.6 copy-all 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\User\AppData\Roaming\npm-cache_logs\2018-09-13T03_34_37_021Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! googlechrome-biograf@12.1.6 build: npm run clean-dist && npm run make-dist && npm run make-client && npm run copy-all && npm run build-js && npm run build-sass && npm run build-resource-list
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the googlechrome-biograf@12.1.6 build 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\User\AppData\Roaming\npm-cache_logs\2018-09-13T03_34_37_149Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! googlechrome-biograf@12.1.6 dev: npm run build && parallelshell "npm run watch" "npm run serve"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the googlechrome-biograf@12.1.6 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\User\AppData\Roaming\npm-cache_logs\2018-09-13T03_34_37_228Z-debug.log`

@Alexandr-Lazariev
Copy link
Author

In my case removing node_modules and ~/.node-gyp folders and running
npm install and
npm update
after, solved the problem

@scailbc
Copy link

scailbc commented Dec 20, 2019

I also get error
`> googlechrome-biograf@12.1.6 copy-client C:\Users\User\Desktop\sample-media-pwa

copy "src/client//." "!src/client/scripts//." "!src/client/styles//." "!src/client/videos//." dist/client

...

I had the same problem, the command copy is from a npm library /jonschlinkert/copy.

I've installed the library globally, also since it didn't find the command I've replaced the command in the package.json with the full path of the binary

npm install --global copy
// package.json
"scripts": {
    ...
    "copy-client": "C:/nvm/v8.11.1/copy \"src/client/**/*.*\" \"!src/client/scripts/**/*.*\" \"!src/client/styles/**/*.*\" \"!src/client/videos/**/*.*\" \"dist/client\"",

This worked for me

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

No branches or pull requests

2 participants