Sure, you're gonna tell me that SOAP is deprecated and all, well I'm forced to use it.
Now, I've tried with the douche module (https://github.com/marcgreenstock/douche) but it fails when I do this (the WSDL url is fine, in fact I'm trying the provided example at test/index.js)
Client.wsdl.parse(function(wsdl) {
console.log(wsdl);
});
The error is:
/usr/local/lib/node_modules/douche/lib/douche/wsdl.js:74
attrs.forEach(function(url,index) {
^
TypeError: Object #<Object> has no method 'forEach'
at [object Object]._read_namespaces (/usr/local/lib/node_modules/douche/lib/douche/wsdl.js:74:9)
at /usr/local/lib/node_modules/douche/lib/douche/wsdl.js:20:10
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/douche/lib/douche/wsdl.js:102:7)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)
at Socket.ondata (http.js:1226:22)
at Socket._onReadable (net.js:683:27)
at IOWatcher.onReadable [as callback] (net.js:177:10)
About soap (https://github.com/milewise/node-soap) I can't even install it with NPM, it fails:
> node-expat#1.3.2 install /home/warorface/node_modules/soap/node_modules/node-expat
> node-waf configure build
> compress#0.1.9 preinstall /home/warorface/node_modules/soap/node_modules/compress
> node-waf configure build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.127s)
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Waf: Entering directory `/home/warorface/node_modules/soap/node_modules/node-expat/build'
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
[1/2] cxx: node-expat.cc -> build/default/node-expat_1.o
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
../node-expat.cc:6:19: fatal error: expat.h: No existe el fichero o el directorio
compilation terminated.
Waf: Leaving directory `/home/warorface/node_modules/soap/node_modules/node-expat/build'
Build failed: -> task failed (err #1):
{task: cxx node-expat.cc -> node-expat_1.o}
Checking for gcc : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
Checking for library z : npm ERR! error installing node-expat#1.3.2 Error: node-expat#1.3.2 install: `node-waf configure build`
npm ERR! error installing node-expat#1.3.2 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing node-expat#1.3.2 at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing node-expat#1.3.2 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing node-expat#1.3.2 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! error installing soap#0.0.1 Error: node-expat#1.3.2 install: `node-waf configure build`
npm ERR! error installing soap#0.0.1 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing soap#0.0.1 at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing soap#0.0.1 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing soap#0.0.1 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! node-expat#1.3.2 install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the node-expat#1.3.2 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls node-expat
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.38-8-generic-pae
npm ERR! command "node" "/usr/local/bin/npm" "install" "soap"
Traceback (most recent call last):
File "/usr/local/bin/node-waf", line 16, in <module>
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 241, in configure
conf.sub_config([''])
File "/usr/local/bin/../lib/node/wafadmin/Configure.py", line 221, in sub_config
self.recurse(k, name='configure')
File "/usr/local/bin/../lib/node/wafadmin/Utils.py", line 634, in recurse
f(self)
File "/home/warorface/node_modules/soap/node_modules/compress/wscript", line 18, in configure
File "/usr/local/bin/../lib/node/wafadmin/Tools/config_c.py", line 444, in check
ret = self.run_c_code(*k, **kw)
File "/usr/local/bin/../lib/node/wafadmin/Tools/config_c.py", line 530, in run_c_code
bld.compile()
File "/usr/local/bin/../lib/node/wafadmin/Build.py", line 292, in compile
os.chdir(back)
OSError: [Errno 2] No such file or directory: '/home/warorface/node_modules/soap/node_modules/compress/build/.conf_check_0'
npm ERR! error installing compress#0.1.9 Error: compress#0.1.9 preinstall: `node-waf configure build`
npm ERR! error installing compress#0.1.9 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing compress#0.1.9 at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing compress#0.1.9 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing compress#0.1.9 at ChildProcess.onexit (child_process.js:192:12)
npm ERR!
Fixed that issue and forked the marcgreenstock/douche repository on github:
https://github.com/kr1sp1n/douche
Install my customized douche:
git clone git#github.com:kr1sp1n/douche.git
cd douche
npm link
cd /path/to/your/project
npm uninstall douche
npm link douche
That's it!
Related
I am developing a site for my fantasy football site. I am pulling from my GitHub repository. I tried adding an environement setting of CI = false. I might have done this incorrectly. I had an initial error of Command "npm run build" exited with 1.
The logs for the error are listed below:
08:27:11.719 ✓ 3 modules transformed.
08:27:11.720 [vite-plugin-svelte] Unrecognized option 'enableSourcemap'
08:27:11.720 file: /vercel/path0/.svelte-kit/build/generated/root.svelte
08:27:11.720 > Unrecognized option 'enableSourcemap'
08:27:11.723 Error: Unrecognized option 'enableSourcemap'
08:27:11.723 at file:///vercel/path0/node_modules/svelte/compiler.mjs:31194:19
08:27:11.723 at Array.forEach (<anonymous>)
08:27:11.723 at validate_options (file:///vercel/path0/node_modules/svelte/compiler.mjs:31188:26)
08:27:11.723 at compile (file:///vercel/path0/node_modules/svelte/compiler.mjs:31232:5)
08:27:11.723 at compileSvelte2 (file:///vercel/path0/node_modules/#sveltejs/vite-plugin-svelte/dist/index.js:313:20)
08:27:11.724 at async Object.transform (file:///vercel/path0/node_modules/#sveltejs/vite-plugin-svelte/dist/index.js:1460:27)
08:27:11.759 npm ERR! code ELIFECYCLE
08:27:11.759 npm ERR! errno 1
08:27:11.765 npm ERR! league-page#1.2.6 build: `svelte-kit build`
08:27:11.765 npm ERR! Exit status 1
08:27:11.765 npm ERR!
08:27:11.765 npm ERR! Failed at the league-page#1.2.6 build script.
08:27:11.765 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
08:27:11.776
08:27:11.776 npm ERR! A complete log of this run can be found in:
08:27:11.777 npm ERR! /vercel/.npm/_logs/2021-11-11T14_27_11_766Z-debug.log
08:27:11.792 Error: Command "CI='' npm run build" exited with 1
Update:
I figured out where the Error: Command "CI='' npm run build" exited with 1 was coming from and fixed that. The initial error as I listed came back up
08:32:34.030 [vite-plugin-svelte] Unrecognized option 'enableSourcemap'
08:32:34.030 file: /vercel/path0/.svelte-kit/build/generated/root.svelte
08:32:34.031 > Unrecognized option 'enableSourcemap'
08:32:34.033 Error: Unrecognized option 'enableSourcemap'
08:32:34.033 at file:///vercel/path0/node_modules/svelte/compiler.mjs:31194:19
08:32:34.033 at Array.forEach (<anonymous>)
08:32:34.033 at validate_options (file:///vercel/path0/node_modules/svelte/compiler.mjs:31188:26)
08:32:34.033 at compile (file:///vercel/path0/node_modules/svelte/compiler.mjs:31232:5)
08:32:34.034 at compileSvelte2 (file:///vercel/path0/node_modules/#sveltejs/vite-plugin-svelte/dist/index.js:313:20)
08:32:34.034 at async Object.transform (file:///vercel/path0/node_modules/#sveltejs/vite-plugin-svelte/dist/index.js:1460:27)
08:32:34.068 npm ERR! code ELIFECYCLE
08:32:34.068 npm ERR! errno 1
08:32:34.072 npm ERR! league-page#1.2.6 build: `svelte-kit build`
08:32:34.072 npm ERR! Exit status 1
08:32:34.072 npm ERR!
08:32:34.072 npm ERR! Failed at the league-page#1.2.6 build script.
08:32:34.072 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
08:32:34.085
08:32:34.086 npm ERR! A complete log of this run can be found in:
08:32:34.086 npm ERR! /vercel/.npm/_logs/2021-11-11T14_32_34_073Z-debug.log
08:32:34.101 Error: Command "npm run build" exited with 1
Not sure what version of Svelte you're using, but try installing v3.44.0:
npm install svelte#3.44.0
See here for a very similar issue:
The latest version of SvelteKit now has a peerdependency on Svelte 3.44.0, which introduced the enableSourcemap option.
https://github.com/sveltejs/kit/issues/2635#issuecomment-945996984
install nodejs:
yum install gcc-c++ openssl-devel
wget https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-x64.tar.xz
tar -xvf node-v14.17.0-linux-x64.tar.xz
vi /etc/profile
# nodejs PATH
export NODE_HOME=/home/selenium/node-v14.17.0-linux-x64
export PATH=$NODE_HOME/bin:$PATH
source /etc/profile
when I run
npm install -g appium
sh: node: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! appium-windows-driver#1.18.1 install: node install-npm.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the appium-windows-driver#1.18.1 install 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! /root/.npm/_logs/2021-05-14T05_06_33_166Z-debug.log
when I run
node --version
it can print curreent node version:v14.17.0
anyone can help?
nvm install node
use this command to install node,then I can successfully install appium.
I just get this error when I try to lunch a new project on ionic 2.
I got a mkdir error, even by running the command on sudo, I use mac os.
I tried reinstall node, cordovan npm, tried to make some update, and googled the problem but can't find a solution.
Please help me, I'm an ionic beginner.
The error:
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/Loic/appIonic/swipeCard/test/node_modules/node-sass/build'
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/bin/node" "/Users/Loic/appIonic/swipeCard/test/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/Loic/appIonic/swipeCard/test/node_modules/node-sass
gyp ERR! node -v v10.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.9.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.9.0 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! /Users/Loic/.npm/_logs/2018-09-22T16_45_54_600Z-debug.log
[ERROR] An error occurred while running subprocess npm.
npm i exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Thank
Try clearing the npm cache at C:\Users\\AppData\Roaming\npm-cache\
I was not using ionic for like six months. When i came back they asked me to update ionic to the latest version. After the update i can't even start a new project. So after wasting sometime i just downgraded to ionic 3.20.0 using the command
npm install -g cordova ionic#3.20.0
and now it's working fine
I have had considerable trouble trying to install Ionic on my Mac. I have tried every suggestion posted on the web without success. I have tried installing as root, using sudo, you name it.
Using Homebrew I have successfully installed node : v6.10.0 and npm v4.1.2.
Issuing: "npm install -g cordova ionic"
Results in:
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v6.10.0
npm ERR! npm v4.1.2
npm ERR! path /Users/craigmaxey/.npm
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall mkdir
npm ERR! Error: EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm'
npm ERR! at Error (native)
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/Users/craigmaxey/.npm' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v6.10.0
npm ERR! npm v4.1.2
npm ERR! path npm-debug.log.3262676290
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'npm-debug.log.3262676290'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, open 'npm-debug.log.3262676290'
npm ERR! at Error (native)
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'npm-debug.log.3262676290' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/craigmaxey/npm-debug.log
This:
EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm'
indicates that you're missing write privileges on /Users/craigmaxey/.npm. Usually, you can fix this by running npm with sudo:
sudo npm install -g cordova ionic
If this doesn't work for you (since you mentioned you already tried sudo), please add the exact error message you get from running this exact command.
I too was getting the same errors and was able to get it to install following these steps:
Using Finder, manually create a folder called "#ionic" at this location: /usr/local/lib/node_modules/#ionic
Using finder, if "ionic" folder exists at /usr/local/bin/ionic, delete it
run sudo npm install -g #ionic/cli
how to resolve can i fixed it . i already install cordova and ionic global
C:\Users\sever>npm install -g ionic
npm ERR! not a package C:\Users\sever\ionic
npm ERR! addLocal Could not install C:\Users\sever\ionic
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\sever\node_modu
les\npm\bin\npm-cli.js" "install" "-g" "ionic"
npm ERR! node v5.1.1
npm ERR! npm v3.9.3
npm ERR! path C:\Users\sever\AppData\Local\Temp\npm-5068-24aad619\unpack-77f32b4
3\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\sever\AppData\
Local\Temp\npm-5068-24aad619\unpack-77f32b43\package.json'
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\sever\AppData\
Local\Temp\npm-5068-24aad619\unpack-77f32b43\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\sever\npm-debug.log
you just have to run
npm install -g cordova
and
npm install -g ionic
And then in windows you have to reopen the cmd window, else the changes aren't noticed.
My problem is npm -v is 3.10.8, which is lower than 4, causing me npm install -g ionic cordova always fail. Giving error like below.
'ionic' is not recognized as an internal or external command, ...
After I run npm install -g npm everything seem fine, and now I can run npm install -g ionic cordova