Vue native: npm run watch:android - npm

I have some problems with npm run watch:<platform>
I've already done:
$ npm install -g #vue/cli #vue/cli-init
$ vue init nativescript-vue/vue-cli-template
$ cd project-name
$ npm install
And for the next step I have this:
```λ npm run watch:android
test-vue-native#1.0.0 watch:android C:\git\test-vue-native
npm run watch -- --env.android
test-vue-native#1.0.0 watch C:\git\test-vue-native
webpack --watch --env.tnsAction run "--env.android"
info: Copying NativeScript plugins to template dependencies...
info: Preparing NativeScript application from template...
npm WARN test-vue-native# No repository field.
info: Bundling application for android...
Webpack is watching the files…
Executing post-build scripts
info: Running NativeScript application...
error: uncaughtException: Command failed: node launch.js run android
date=Mon Jul 09 2018 18:04:18 GMT+0300 (Moscow Standard Time), pid=22308, uid=null, gid=null, cwd=C:\git\test-vue-native, execPath=C:\Program Files\nodejs\node.exe, version=v10.6.0, argv=[C:\Program Files\nodejs\node.exe, C:\git\test-vue-native\node_modules\webpack\bin\webpack.js, --watch, --env.tnsAction, run, --env.android], rss=174575616, heapTotal=148561920, heapUsed=97997008, external=956561, loadavg=[0, 0, 0], uptime=3893667, trace=[column=12, file=child_process.js, function=ChildProcess.exithandler, line=291, method=exithandler, native=false, column=13, file=events.js, function=ChildProcess.emit, line=182, method=emit, native=false, column=16, file=internal/child_process.js, function=maybeClose, line=961, method=null, native=false, column=11, file=internal/child_process.js, function=Socket.stream.socket.on, line=380, method=on, native=false, column=13, file=events.js, function=Socket.emit, line=182, method=emit, native=false, column=12, file=net.js, function=Pipe._handle.close, line=598, method=close, native=false], stack=[Error: Command failed: node launch.js run android, , at ChildProcess.exithandler (child_process.js:291:12), at ChildProcess.emit (events.js:182:13), at maybeClose (internal/child_process.js:961:16), at Socket.stream.socket.on (internal/child_process.js:380:11), at Socket.emit (events.js:182:13), at Pipe._handle.close (net.js:598:12)]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test-vue-native#1.0.0 watch: webpack --watch --env.tnsAction run "--env.android"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test-vue-native#1.0.0 watch 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\gvolkov\AppData\Roaming\npm-cache_logs\2018-07-09T15_04_18_803Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test-vue-native#1.0.0 watch:android: npm run watch -- --env.android
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test-vue-native#1.0.0 watch:android 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\gvolkov\AppData\Roaming\npm-cache_logs\2018-07-09T15_04_18_856Z-debug.log```
What can helps me?
P.S.: I'm using windows x64

"NativeScript Advanced Setup: Windows" helps me
https://docs.nativescript.org/start/ns-setup-win

Related

npm install code 1 error git dep preparation failed

Has anyone hit the error below when trying to install NPM?
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /home/user1/.nvm/versions/node/v15.12.0/bin/node /home/user1/.nvm/versions/node/v15.12.0/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/user1/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! The git reference could not be found
npm ERR! npm ERR! command git --no-replace-objects checkout 4.0
npm ERR! npm ERR! error: pathspec '4.0' did not match any file(s) known to git
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /home/user1/.npm/_logs/2021-07-27T07_22_59_809Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user1/.npm/_logs/2021-07-27T07_24_31_341Z-debug.log
In my case I got that error while using node v16.13.0. After I switched to v10.24.1, it got solved.
I'm on In Windows 10 with node 16.
For me, the solution was either running commands
set NODE_ENV=development
$env:NODE_ENV="development"
or calling the npm install command with admin rights inside PowerShell
By the way, when I switched to node v12, it worked for me as well.

React app: npm run build throws "sh: cross-env: command not found" even after running npm i

I have been unable to run the command npm run build unsuccessfully, I get the following issue:
> #myer-online/frontend#1.0.0 build /Users/surbhimidha/myer-online
> cross-env NODE_ENV=production next build
sh: cross-env: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! #myer-online/frontend#1.0.0 build: `cross-env NODE_ENV=production next build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the #myer-online/frontend#1.0.0 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/surbhimidha/.npm/_logs/2021-02-10T08_06_42_019Z-debug.log
I am using the following versions of node and npm:
npm: 6.14.8
node: 14.13.1
I have tried to delete node modules and run npm i but still I get the above error when I run npm run build
I noticed that cross-env is not present under /node_modules/.bin
Please help!

error while running "npm run build" in vue application

I have cloned vue application from git hub(https://github.com/jimmerioles/progressive-weather-app), for automating the deployment in jenkins. Before doing it, i am checking in my ubuntu machine(GCP vm). There i have installed java,nodejs, npm and vuecli. When i execute a command "npm run build" getting the below error. I tried re-installing vuecli, nodejs and npm also., still getting the same error. Kindly let me know how can i fix this.
npm version is "6.2.0", nodejs version is "v14.3.0" and vuecli is a latest one.
root#instance-2:~/weather/src# npm run build
> PWeatherApp#0.1.0 build /root/weather
> vue-cli-service build
sh: 1: vue-cli-service: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! PWeatherApp#0.1.0 build: `vue-cli-service build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the PWeatherApp#0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-05-23T18_32_20_092Z-debug.log
its may help you:
npm install -g #vue/cli
# OR
yarn global add #vue/cli

Aurelia Typescript skeleton -navigation error with npm start command

I'm using Node 6.3 and npm 3.10.3
I'm successfully able to run the command of npm install but when i execute npm start I get the following error
I'm referring to this github repo https://github.com/aurelia/skeleton-navigation/tree/master/skeleton-typescript-webpack
Error is
npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program
Files\nodejs\node.exe" "C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "server:dev"
npm ERR! node v6.3.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE
npm ERR! aurelia-skeleton-navigation-webpack#1.0.0-beta.3.0.1
server:dev: cross-env NODE_ENV=development node
./node_modules/webpack-dev-server/bin/webpack-dev-server --inline
--progress --profile --watch npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the aurelia-skeleton-navigation-webpack#1.0.0-beta.3.0.1
server:dev script 'cross-env NODE_ENV=development node
./node_modules/webpack-dev-server/bin/webpack-dev-server --inline
--progress --profile --watch'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most
likely a problem with the aurelia-skeleton-navigation-webpack package,
npm ERR! not with npm itself. npm ERR! Tell the author that this fails
on your system: npm ERR! cross-env NODE_ENV=development node
./node_modules/webpack-dev-server/bin/webpack-dev-server --inline
--progress --profile --watch npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs
aurelia-skeleton-navigation-webpack npm ERR! Or if that isn't
available, you can get their info via: npm ERR! npm owner ls
aurelia-skeleton-navigation-webpack npm ERR! There is likely
additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\Afzal.Qureshi\My
Projects\AureliaTs\skeleton-navigation-master\skeleton-typescript-webpack\npm-debug.log
npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program
Files\nodejs\node.exe" "C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR!
node v6.3.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR!
aurelia-skeleton-navigation-webpack#1.0.0-beta.3.0.1 start: npm run
server:dev npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the
aurelia-skeleton-navigation-webpack#1.0.0-beta.3.0.1 start script 'npm
run server:dev'. npm ERR! Make sure you have the latest version of
node.js and npm installed. npm ERR! If you do, this is most likely a
problem with the aurelia-skeleton-navigation-webpack package, npm ERR!
not with npm itself. npm ERR! Tell the author that this fails on your
system: npm ERR! npm run server:dev npm ERR! You can get
information on how to open an issue for this project with: npm ERR!
npm bugs aurelia-skeleton-navigation-webpack npm ERR! Or if that isn't
available, you can get their info via: npm ERR! npm owner ls
aurelia-skeleton-navigation-webpack npm ERR! There is likely
additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\My
Projects\AureliaTs\skeleton-navigation-master\skeleton-typescript-webpack\npm-debug.log
It seems that you're using the nightly version of the skeleton. Be sure to pull a release version.
https://github.com/aurelia/skeleton-navigation/tree/1.0.0-beta.3.0.1/skeleton-typescript-webpack

npm intstall: binding.node is missing

I tried to install npm on my local machine (Mac OS) but when I run npm start, it keeps giving me this error with node_sass. Even when I run
sudo npm install node_sass
it doesn't fix the problem.
Error: You probably need to execute `npm install` to install brunch plugins.
Error: `/Users/AnhLe/bloc/anh-jams/node_modules/sass-brunch/node_modules/node-sass/bin/darwin-x64-v8-3.28/binding.node` is missing. Try reinstalling `node-sass`?
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.0
npm ERR! npm v2.7.3
npm ERR! code ELIFECYCLE
npm ERR! bloc-rdio-skeleton#0.0.1 start: `brunch watch --server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bloc-rdio-skeleton#0.0.1 start script 'brunch watch --server'.
npm ERR! This is most likely a problem with the bloc-rdio-skeleton package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! brunch watch --server
npm ERR! You can get their info via:
npm ERR! npm owner ls bloc-rdio-skeleton
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/AnhLe/bloc/anh-jams/npm-debug.log
Looked around and these people are experiencing a similar error due to binding.node missing from SASS.
https://github.com/dlmanning/gulp-sass/issues/185