Adding @ionic/pro@1.0.15 fails


#1

My team is just getting started with Ionic Pro. I’m sure this is a newbie issue. I successfully created a new Ionic Dashboard project following one of the tutorials, but now I am unable to create any more apps. When I run "ionic start --pro-id " it fails with this stack trace:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   '--save',
1 verbose cli   '-E',
1 verbose cli   '@ionic/pro' ]
2 info using npm@5.5.1
3 info using node@v8.9.1
...
16 silly install generateActionsToTake
17 silly diffTrees action count 1
18 silly diffTrees add @ionic/pro@1.0.15
19 silly decomposeActions action count 8
20 silly decomposeActions fetch @ionic/pro@1.0.15
21 silly decomposeActions extract @ionic/pro@1.0.15
22 silly decomposeActions preinstall @ionic/pro@1.0.15
23 silly decomposeActions build @ionic/pro@1.0.15
24 silly decomposeActions install @ionic/pro@1.0.15
25 silly decomposeActions postinstall @ionic/pro@1.0.15
26 silly decomposeActions finalize @ionic/pro@1.0.15
27 silly decomposeActions refresh-package-json @ionic/pro@1.0.15
28 silly install executeActions
29 silly doSerial global-install 8
30 verbose correctMkdir [USER DIR]/.npm/_locks correctMkdir not in flight; initializing
31 verbose lock using [USER DIR]/.npm/_locks/staging-07c9cf1e221fbc27.lock for [USER DIR]/Development/Ionic/[PROJECT NAME]/node_modules/.staging
32 silly doParallel extract 8
33 silly extract @ionic/pro@1.0.15
34 silly doReverseSerial unbuild 8
35 silly doSerial remove 8
36 silly doSerial move 8
37 silly doSerial finalize 8
38 silly finalize [USER DIR]/Development/Ionic/[PROJECT NAME]/node_modules/@ionic/pro
39 silly doParallel refresh-package-json 8
40 silly refresh-package-json [USER DIR]/Development/Ionic/[PROJECT NAME]/node_modules/@ionic/pro
41 silly doParallel preinstall 8
42 silly preinstall @ionic/pro@1.0.15
43 info lifecycle @ionic/pro@1.0.15~preinstall: @ionic/pro@1.0.15
44 silly doSerial build 8
45 silly build @ionic/pro@1.0.15
46 info linkStuff @ionic/pro@1.0.15
47 silly linkStuff @ionic/pro@1.0.15 has [USER DIR]/Development/Ionic/[PROJECT NAME]/node_modules as its parent node_modules
48 verbose linkBins @ionic/pro@1.0.15
49 verbose linkBins [ { 'pro-sync-sourcemaps': './bin/pro-sync-sourcemaps.js' },
49 verbose linkBins   '[USER DIR]/Development/Ionic/[PROJECT NAME]/node_modules/.bin',
49 verbose linkBins   false ]
50 verbose linkMans @ionic/pro@1.0.15
51 verbose unlock done using [USER DIR]/.npm/_locks/staging-07c9cf1e221fbc27.lock for [USER DIR]/Development/Ionic/[PROJECT NAME]/node_modules/.staging
52 verbose stack Error: ENOENT: no such file or directory, chmod '[USER DIR]/Development/Ionic/[PROJECT NAME]/node_modules/@ionic/pro/bin/pro-sync-sourcemaps.js'
53 verbose cwd [USER DIR]/Development/Ionic/[PROJECT NAME]
54 verbose Darwin 16.7.0
55 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "--save" "-E" "@ionic/pro"
56 verbose node v8.9.1
57 verbose npm  v5.5.1
58 error path [USER DIR]/Development/Ionic/[PROJECT NAME]/node_modules/@ionic/pro/bin/pro-sync-sourcemaps.js
59 error code ENOENT
60 error errno -2
61 error syscall chmod
62 error enoent ENOENT: no such file or directory, chmod '[USER DIR]/Development/Ionic/[PROJECT NAME]/node_modules/@ionic/pro/bin/pro-sync-sourcemaps.js'
63 error enoent This is related to npm not being able to find a file.
64 verbose exit [ -2, true ]


#2

Same issue here with Ionic Pro 1.0.8, but it’s happening when building the project in Ionic Dashboard


#3

I tried uninstalling and reinstalling the ionic CLI just to see if it made a difference. It didn’t.


#4

I have the same issue today when I tried to run npm install on an existing project folder. Then I removed the whole folder and did a fresh checkout. Now the issue is gone.


#5

Getting the same error building in ionic pro dashboard.

I cleared my node_moduloes folder and tried to upgrade @ionic/pro and now I’m getting the error local as well.


#6

Receiving the same error when I do a clean install of my node_modules (delete the node_modules directory and axe package-lock)

npm install dies with:

npm ERR! path /Users/omitting my username/Documents/_PROJECT/wayyer/node_modules/@ionic/pro/bin/pro-sync-sourcemaps.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/omitting my username/Documents/_PROJECT/wayyer/node_modules/@ionic/pro/bin/pro-sync-sourcemaps.js’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

this is currently :
"@ionic/pro": “^1.0.15”,


#8

According to Mike on Slack it’s fixed in 1.0.16. Tried here and worked.


#9

I can confirm that after running “npm install -g ionic@latest” again the problem is fixed with the latest version.


#10

Worked here too. Thanks for that!